diff --git a/.github/workflows/cve-scan.yml b/.github/workflows/cve-scan.yml index 729b9fb..2dafdb9 100644 --- a/.github/workflows/cve-scan.yml +++ b/.github/workflows/cve-scan.yml @@ -17,7 +17,12 @@ jobs: IMAGE=test/podinfo:${GITHUB_SHA} docker build -t ${IMAGE} . echo "::set-output name=image::$IMAGE" - - name: Scan image - uses: docker://docker.io/aquasec/trivy:latest + - name: Run Trivy vulnerability scanner + uses: aquasecurity/trivy-action@master with: - args: --cache-dir /var/lib/trivy --no-progress --exit-code 1 --severity MEDIUM,HIGH,CRITICAL ${{ steps.build.outputs.image }} + image-ref: ${{ steps.build.outputs.image }} + format: table + exit-code: "1" + ignore-unfixed: true + vuln-type: os,library + severity: CRITICAL,HIGH