From f8cef42627b83233221be64c42c815bf7ba7f42d Mon Sep 17 00:00:00 2001 From: nvminhtue Date: Fri, 12 Jan 2024 17:12:57 +0700 Subject: [PATCH] [#227] Revert to github action --- .github/workflows/test-generated-project.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-generated-project.yml b/.github/workflows/test-generated-project.yml index 812dcf2a..a28fdca9 100644 --- a/.github/workflows/test-generated-project.yml +++ b/.github/workflows/test-generated-project.yml @@ -46,5 +46,13 @@ jobs: run: terraform fmt -recursive -check - name: Run trivy linter - run: ls -l && trivy fs --scanners vuln,secret,misconfig --exit-code 1 ./aws-advanced-test - continue-on-error: false + uses: aquasecurity/trivy-action@master + with: + scan-type: 'fs' + ignore-unfixed: true + exit-code: '1' + severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL' + scan-ref: './aws-advanced-test' + + # run: ls -l && trivy fs --scanners vuln,secret,misconfig --exit-code 1 ./aws-advanced-test + # continue-on-error: false