Skip to content

Commit 7a9a408

Browse files
[TESTING] Update bandit.yml (- WIP #164 -)
- Unleash bandit scan as per #164
1 parent e9afad1 commit 7a9a408

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/bandit.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
bandit:
2525
permissions:
2626
contents: read # for actions/checkout to fetch code
27+
statuses: write
2728
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
2829
runs-on: ubuntu-latest
2930
steps:
@@ -32,15 +33,15 @@ jobs:
3233
uses: reactive-firewall/[email protected]
3334
with: # optional arguments
3435
# exit with 0, even with results found
35-
exit_zero: true # optional, default is DEFAULT
36+
exit_zero: false # optional, default is DEFAULT
3637
# Github token of the repository (automatically created by Github)
3738
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information.
3839
# File or directory to run bandit on
3940
path: "." # optional, default is .
4041
# Report only issues of a given severity level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
41-
level: medium # optional, default is UNDEFINED
42+
# level: MEDIUM # optional, default is UNDEFINED
4243
# Report only issues of a given confidence level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
43-
confidence: high # optional, default is UNDEFINED
44+
confidence: LOW # optional, default is UNDEFINED
4445
# comma-separated list of paths (glob patterns supported) to exclude from scan (note that these are in addition to the excluded paths provided in the config file) (default: .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg)
4546
# excluded_paths: # optional, default is DEFAULT
4647
# comma-separated list of test IDs to skip

0 commit comments

Comments
 (0)