-
Notifications
You must be signed in to change notification settings - Fork 44
38 lines (33 loc) · 1000 Bytes
/
bandit-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Bandit Check
on:
workflow_dispatch:
schedule:
- cron: '5 23 * * *'
permissions: read-all
jobs:
bandit-check:
runs-on:
- max1100
- rolling
- runner-0.0.20
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Summarize and upload Bandit check
run: |
pip install bandit
bandit -c bandit.yaml -r ./benchmarks/ ./scripts/ ./third_party/intel/ --exit-zero -f custom --msg-template \
"{relpath}:{line:<4} {test_id}[bandit]:{severity}: {msg}"
bandit -c bandit.yaml -r ./benchmarks/ ./scripts/ ./third_party/intel/ --exit-zero -f html -o bandit_report.html
- name: Upload report to artifacts
uses: actions/upload-artifact@v4
with:
name: Bandit Report
path: bandit_report.html