Skip to content

Commit

Permalink
chore(ci): run bandit independently
Browse files Browse the repository at this point in the history
  • Loading branch information
l4rm4nd authored Jul 26, 2024
1 parent 2b4f6b1 commit 2ab7f48
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ jobs:

bandit:
name: SAST with Bandit
needs: changelog
if: github.event_name != 'pull_request' && needs.changelog.outputs.skipped == 'false'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -62,7 +60,16 @@ jobs:
run: pip install bandit

- name: Run Bandit
run: bandit -r xingdumper.py --severity-level medium
id: bandit
run: |
bandit -r xingdumper.py --severity-level medium -f html -o bandit_report.html
- name: Upload Bandit report
if: failure()
uses: actions/upload-artifact@v3
with:
name: bandit-report
path: bandit_report.html

deploy:
name: Deploy Image
Expand Down

0 comments on commit 2ab7f48

Please sign in to comment.