-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from mekanix/security
Add bandit to CI
- Loading branch information
Showing
7 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,6 @@ jobs: | |
- name: Test and lint | ||
run: | | ||
bin/test.sh | ||
- name: Security | ||
run: | | ||
bin/security.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
BIN_DIR=`dirname $0` | ||
export FREENIT_ENV="test" | ||
. ${BIN_DIR}/common.sh | ||
|
||
|
||
setup no | ||
bandit `find freenit -type f -name '*.py'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ def __init__( | |
self, | ||
server="mail.example.com", | ||
user="[email protected]", | ||
password="Secrit", | ||
password="Secrit", #nosec | ||
port=587, | ||
tls=True, | ||
from_addr="[email protected]", | ||
|
@@ -69,7 +69,7 @@ class BaseConfig: | |
dburl = "sqlite:///db.sqlite" | ||
database = None | ||
engine = None | ||
secret = "SECRET" | ||
secret = "SECRET" #nosec | ||
user = "freenit.models.ormar.user" | ||
role = "freenit.models.ormar.role" | ||
theme = "freenit.models.ormar.theme" | ||
|
@@ -121,4 +121,4 @@ class TestConfig(BaseConfig): | |
|
||
|
||
class ProdConfig(BaseConfig): | ||
secret = "MORESECURESECRET" | ||
secret = "MORESECURESECRET" #nosec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
], | ||
"test": [ | ||
"aiosqlite", | ||
"bandit", | ||
"black", | ||
"httpx", | ||
"isort", | ||
|