From 1c2c97fd865b21a01e59b00a3d69783725b2db95 Mon Sep 17 00:00:00 2001 From: "stacklok-cloud[bot]" <165083860+github-actions[bot]@users.noreply.github.com> Date: Tue, 31 Dec 2024 00:06:22 +0000 Subject: [PATCH] Add Trivy repository scan configuration --- .github/workflows/trivy.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/trivy.yml diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml new file mode 100644 index 00000000..77ddf420 --- /dev/null +++ b/.github/workflows/trivy.yml @@ -0,0 +1,19 @@ +name: Trivy Scan + +on: + pull_request: + +jobs: + trivy-code-security-scan: + runs-on: ubuntu-latest + name: Trivy + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - name: Security Scan + uses: aquasecurity/trivy-action@d710430a6722f083d3b36b8339ff66b32f22ee55 # v0.19.0 + with: + scan-type: 'fs' + scanners: vuln,secret + exit-code: 1 + ignore-unfixed: true