Skip to content

Commit

Permalink
Tweak bandit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Feb 27, 2022
1 parent 15ddf4e commit e5eac23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .bandit.code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
# Configuration for Bandit to run security checks on code,
# excluding the test suite
# Used in `.github/workflows/bandit.yml`
exclude: ./src/darker/tests
targets: .
exclude_dirs:
- ./src/darker/tests
1 change: 0 additions & 1 deletion .bandit.tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
# Configuration for Bandit to run security checks on test modules
# Used in `.github/workflows/bandit.yml`
targets: ./src/darker/tests
skips:
- B101
2 changes: 2 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
- name: Bandit security check for code
uses: ioggstream/[email protected]
with:
project_path: .
config_file: ./.bandit.code.yaml

- name: Bandit security check for tests
uses: ioggstream/[email protected]
with:
project_path: ./src/darker/tests
config_file: ./.bandit.tests.yaml

0 comments on commit e5eac23

Please sign in to comment.