Skip to content

Commit

Permalink
Scan the correct image
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy <contact@tommytran.io>
  • Loading branch information
TommyTran732 authored Sep 6, 2024
1 parent 19808b9 commit b9266e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:testing
format: template
template: '@/contrib/sarif.tpl'
output: trivy-results.sarif
Expand All @@ -93,11 +93,11 @@ jobs:
uses: anchore/scan-action@v4
id: grype
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:testing
fail-build: false

- name: Upload Grype scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.grype.outputs.sarif }}
category: grype
category: grype

0 comments on commit b9266e7

Please sign in to comment.