Skip to content

Commit

Permalink
Run trivy on image in PR (#379)
Browse files Browse the repository at this point in the history
* Run trivy on image in PR

* meta output tags includes image name

* Use fromJSON

* use outputs.json
  • Loading branch information
agouin committed Oct 26, 2023
1 parent 1645b0e commit 4c4be57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}'
image-ref: '${{ fromJSON(steps.meta.outputs.json).tags[0] }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
Expand Down

0 comments on commit 4c4be57

Please sign in to comment.