Skip to content

Trivy Security Scan

Trivy Security Scan #4

Workflow file for this run

name: Trivy Security Scan
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "0 0 * * *" # Daily scan at midnight UTC
workflow_dispatch: # Allow manual trigger
jobs:
trivy-scan:
name: Trivy Security Scan
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Run Trivy vulnerability scanner (table output)
uses: aquasecurity/trivy-action@v0.36.0
if: always()
with:
scan-type: "fs"
scan-ref: "."
format: "table"
severity: "CRITICAL,HIGH"
scanners: "vuln,secret,misconfig"
exit-code: "1"