diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml new file mode 100644 index 0000000..e109245 --- /dev/null +++ b/.github/workflows/security.yml @@ -0,0 +1,28 @@ +name: Security + +on: + push: + branches: ["main"] + pull_request: + schedule: + - cron: "0 6 * * 1" + +permissions: + contents: read + +jobs: + trivy: + name: Trivy Security Scan + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Trivy scan (deps, secrets, IaC, Dockerfiles) + uses: aquasecurity/trivy-action@v0.36.0 + with: + scan-type: fs + scan-ref: . + scanners: vuln,secret,misconfig + severity: CRITICAL,HIGH + ignore-unfixed: true + format: table + exit-code: "0"