Bandit Check #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bandit Check | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '5 23 * * *' | |
permissions: read-all | |
jobs: | |
bandit-check: | |
runs-on: | |
- max1100 | |
- rolling | |
- runner-0.0.19 | |
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 |