Radarr/.github/workflows/trivy.yml
Cody Kickertz c89ee01b63
chore(ci): standardize branch naming to use main instead of master (#90)
- Update workflow triggers to use main instead of master
- Update CONTRIBUTING.md to reference main branch
- Aligns with documentation in CLAUDE.md

Closes #52

Note: Actual branch rename (master → main) must be done on GitHub.

Co-authored-by: admin <admin@ardentleatherworks.com>
2025-12-20 09:00:25 -06:00

41 lines
1,020 B
YAML

# Trivy vulnerability scanner
# Scans for CVEs in filesystem/dependencies and uploads to GitHub Security tab
# Note: Image scanning requires built artifacts, use release workflow for that
name: Trivy Security Scan
on:
push:
branches: [develop, main]
pull_request:
branches: [develop]
schedule:
- cron: '0 6 * * 1' # Weekly on Monday at 6am UTC
permissions:
contents: read
security-events: write
actions: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Run Trivy filesystem scanner
uses: aquasecurity/trivy-action@0.33.1
with:
scan-type: 'fs'
scan-ref: '.'
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
ignore-unfixed: true
- name: Upload Trivy results to GitHub Security
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: 'trivy-results.sarif'