Skip to content

Trivy Scan

Trivy Scan #608

Workflow file for this run

name: Trivy Scan
on:
workflow_dispatch:
schedule:
- cron: "17 17 * * *"
permissions:
contents: read
jobs:
build:
permissions:
contents: read
security-events: write
name: Scan
runs-on: "ubuntu-latest"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
scan-type: "fs"
format: "sarif"
output: "trivy-results.sarif"
severity: "CRITICAL,HIGH"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: "trivy-results.sarif"