Skip to content

Security

Security #215

Workflow file for this run

name: Security
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Run weekly on Sundays at midnight
- cron: '0 0 * * 0'
jobs:
semgrep:
name: Semgrep
runs-on: ubuntu-latest
container:
image: semgrep/semgrep
steps:
- uses: actions/checkout@v4
- name: Run Semgrep
run: semgrep scan --config auto --config p/python --config p/security-audit --error --json --output semgrep-results.json .
- name: Upload results
uses: actions/upload-artifact@v4
if: always()
with:
name: semgrep-results
path: semgrep-results.json
bandit:
name: Bandit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Run Bandit
run: uvx bandit -r apps packages -c pyproject.toml -f json -o bandit-results.json
- name: Upload results
uses: actions/upload-artifact@v4
if: always()
with:
name: bandit-results
path: bandit-results.json