Skip to content

Commit

Permalink
ci: add bandit (sast)
Browse files Browse the repository at this point in the history
  • Loading branch information
derlin committed Apr 12, 2022
1 parent 168b5a1 commit c889b52
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ jobs:

- name: Check Style
run: |
poetry run black --diff --check .
poetry run black --diff --check rickroll
- name: Check Common Vulnerabilities (SAST)
run: |
poetry run bandit -r rickroll
build:
if: ${{ !startsWith(github.event.head_commit.message, 'docs') }} # skip on documentation
Expand Down
137 changes: 136 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Flask = "^2.1.0"

[tool.poetry.dev-dependencies]
black = "*"
bandit = "^1.7.4"

0 comments on commit c889b52

Please sign in to comment.