Skip to content

Trivy Scan

Trivy Scan #110

Workflow file for this run

name: Trivy Scan
on:
# Run weekly
schedule:
- cron: '0 12 * * 1'
# Allow manual runs
workflow_dispatch:
permissions:
contents: read
jobs:
trivy-scan:
strategy:
matrix:
branch:
- main
- release-1.29
- release-1.28
- release-1.27
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
ref: ${{ matrix.branch }}
- uses: aquasecurity/trivy-action@595be6a0f6560a0a8fc419ddf630567fc623531d # 0.22.0
with:
scanners: vuln
scan-type: 'fs'
format: 'sarif'
output: 'trivy-results.sarif'
ignore-unfixed: true
severity: 'HIGH,CRITICAL'
- uses: github/codeql-action/upload-sarif@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
with:
sarif_file: 'trivy-results.sarif'