Skip to content

Commit

Permalink
Add bandit to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dfitchett committed Dec 20, 2024
1 parent ed5a46a commit 21b29e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/bandit-code-scan.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,7 @@ jobs:
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
debug: true

- name: "Bandit Code Scan"
if: always()
run: poetry run bandit -c pyproject.toml -r -l .
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ indent-style = "space"
skip-magic-trailing-comma = false

[tool.mypy]
python_version = "3.12.3"
python_version = "3.12"
plugins = ['pydantic.mypy']
strict = true
ignore_missing_imports = true
Expand Down Expand Up @@ -78,7 +78,6 @@ bandit = {version = "1.8.*", extras = ["toml"]}

[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"] # https://bandit.readthedocs.io/en/latest/plugins/b101_assert_used.html

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 21b29e6

Please sign in to comment.