Skip to content

Commit

Permalink
Add image scan (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored May 5, 2023
1 parent 7b1d7a0 commit bbfd3fd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,17 @@ jobs:
cache-to: type=gha,mode=max
provenance: false
sbom: ${{ github.event_name != 'pull_request' }}

- name: Scan image
uses: anchore/scan-action@dafbc97d7259af88b61bd260f2fde565d0668a72 # v3.3.4
id: scan
continue-on-error: true
with:
image: nginx/nginx-prometheus-exporter:${{ steps.meta.outputs.version }}
only-fixed: true

- name: Upload scan result to GitHub Security tab
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
continue-on-error: true
with:
sarif_file: ${{ steps.scan.outputs.sarif }}

0 comments on commit bbfd3fd

Please sign in to comment.