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