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