Skip to content

Commit

Permalink
Merge pull request #149 from duggalsu/add_ci_bandit
Browse files Browse the repository at this point in the history
Add ci bandit
  • Loading branch information
dennyabrain authored Mar 11, 2024
2 parents 0f7e440 + 4802bea commit c899ab4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pr-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,21 @@ jobs:
if: always()
with:
sarif_file: 'trivy-results.sarif'

- name: Bandit Scan
uses: shundor/python-bandit-scan@9cc5aa4a006482b8a7f91134412df6772dbda22c
with: # optional arguments
# exit with 0, even with results found
exit_zero: false # optional, default is DEFAULT
# File or directory to run bandit on
path: ./src/ # optional, default is .
# Report only issues of a given severity level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
# level: HIGH # optional, default is UNDEFINED
# Report only issues of a given confidence level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
# confidence: # optional, default is UNDEFINED
# 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)
# excluded_paths: # optional, default is DEFAULT
# comma-separated list of test IDs to skip
# skips: # optional, default is DEFAULT
# path to a .bandit file that supplies command line arguments
# ini_path: # optional, default is DEFAULT

0 comments on commit c899ab4

Please sign in to comment.