Skip to content

build(deps): bump actions/upload-artifact from 4 to 5 #76

build(deps): bump actions/upload-artifact from 4 to 5

build(deps): bump actions/upload-artifact from 4 to 5 #76

Workflow file for this run

name: Security Scan
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 8 * * 1' # Run at 8:00 UTC every Monday
workflow_dispatch:
jobs:
bandit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install bandit
- name: Run bandit
run: |
bandit -r src/ -c pyproject.toml -f json -o bandit-results.json
- name: Upload bandit results
uses: actions/upload-artifact@v5
with:
name: bandit-results
path: bandit-results.json
trivy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
format: 'table'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'