From c9f7548b035339da19cfbbd7a7a1f309c8e53043 Mon Sep 17 00:00:00 2001 From: Stacklok Bot Date: Wed, 8 May 2024 11:58:46 +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 0000000..8b5d542 --- /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@d43c1f16c00cfd3978dde6c07f4bbcf9eb6993ca # 0.16.1 + with: + scan-type: 'fs' + scanners: vuln,secret + exit-code: 1 + ignore-unfixed: true \ No newline at end of file