Skip to content

Commit

Permalink
bandit-scan directory tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rilesdun committed Sep 17, 2023
1 parent 94a357f commit 1bdc5dd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/bandit-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ jobs:

- name: Install Bandit
run: pip install bandit

- name: Run Bandit and Generate HTML Report

- name: Create report directory
run: mkdir -p bandit-security-report

- name: Run Bandit and generate report
run: |
bandit -r . -f json -o bandit-security-report/bandit-report.json
python json_to_html.py bandit-report.json > bandit-security-report/bandit-report.html
bandit -r src/ -f json -o bandit-security-report/bandit-report.json
python json_to_html.py bandit-security-report/bandit-report.json > bandit-security-report/bandit-report.html
- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down

0 comments on commit 1bdc5dd

Please sign in to comment.