From 32e9ed842d9abec2891466bf7b7f65c1310b05f8 Mon Sep 17 00:00:00 2001 From: Oliver Kriz Date: Tue, 2 Jun 2026 17:01:31 +0200 Subject: [PATCH] ci: add Trivy security scan --- .github/workflows/security.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/security.yml diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml new file mode 100644 index 0000000..8d6f996 --- /dev/null +++ b/.github/workflows/security.yml @@ -0,0 +1,28 @@ +name: Security + +on: + push: + branches: ["master"] + 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"