From 1b8c36ed59b08ce2d6745548ee5b68f4ac46feee Mon Sep 17 00:00:00 2001 From: Leonardo Correa Date: Fri, 2 Sep 2022 12:47:04 +1000 Subject: [PATCH] build: add trivy (#194) --- .github/workflows/trivy.yml | 18 ++++++++++++++++++ 1 file changed, 18 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..fd92f1b --- /dev/null +++ b/.github/workflows/trivy.yml @@ -0,0 +1,18 @@ +name: Trivy security Gate +on: [push] +jobs: + security-gate: + name: Trivy security Gate + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Run Trivy vulnerability scanner in repo mode + uses: aquasecurity/trivy-action@master + with: + scan-type: 'fs' + format: 'table' + exit-code: '1' + severity: 'CRITICAL' + ignore-unfixed: true