Skip to content

Bandit Check

Bandit Check #136

Workflow file for this run

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