We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b4f6b1 commit 2ab7f48Copy full SHA for 2ab7f48
.github/workflows/docker-image.yml
@@ -45,10 +45,8 @@ jobs:
45
46
bandit:
47
name: SAST with Bandit
48
- needs: changelog
49
- if: github.event_name != 'pull_request' && needs.changelog.outputs.skipped == 'false'
50
runs-on: ubuntu-latest
51
-
+
52
steps:
53
- name: Checkout code
54
uses: actions/checkout@v4
@@ -62,7 +60,16 @@ jobs:
62
60
run: pip install bandit
63
61
64
- name: Run Bandit
65
- run: bandit -r xingdumper.py --severity-level medium
+ id: bandit
+ run: |
+ bandit -r xingdumper.py --severity-level medium -f html -o bandit_report.html
66
67
+ - name: Upload Bandit report
68
+ if: failure()
69
+ uses: actions/upload-artifact@v3
70
+ with:
71
+ name: bandit-report
72
+ path: bandit_report.html
73
74
deploy:
75
name: Deploy Image
0 commit comments