Skip to content

Commit

Permalink
Add image scan
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Feb 24, 2023
1 parent 05231dd commit 9120666
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 @@ -140,3 +140,17 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
cache-from: type=gha
cache-to: type=gha,mode=max

- 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 9120666

Please sign in to comment.