diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a7fcb57..abfd354 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -182,21 +182,24 @@ jobs: # Docs: runs-on: ubuntu-20.04 needs: [docker-image] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 # is needed for `upload-sarif` action - uses: actions/download-artifact@v2 with: name: docker-image path: .artifact - - working-directory: .artifact - run: docker load < docker-image.tar - - - uses: anchore/scan-action@v3 # action page: + - uses: aquasecurity/trivy-action@0.2.2 # action page: with: - image: app:ci - fail-build: true - severity-cutoff: low # negligible, low, medium, high or critical + input: .artifact/docker-image.tar + format: sarif + severity: MEDIUM,HIGH,CRITICAL + exit-code: 1 + output: trivy-results.sarif + + - uses: github/codeql-action/upload-sarif@v1 + if: always() + with: {sarif_file: trivy-results.sarif} poke-docker-image: name: Run the docker image diff --git a/.grype.yaml b/.grype.yaml deleted file mode 100644 index df59c9b..0000000 --- a/.grype.yaml +++ /dev/null @@ -1,3 +0,0 @@ -ignore: - # temporary ignore this CVE as false positive on the Go package - - vulnerability: CVE-2015-5237