Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Update trivy.yml

Update trivy.yml #2

Workflow file for this run

name: Bandit Scan
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
bandit_scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Bandit
run: pip install bandit
- name: Run Bandit
run: bandit -r --format txt --output bandit-output.txt --exit-zero .
- name: Upload Bandit report
uses: actions/upload-artifact@v4
with:
name: bandit-report
path: bandit-output.txt