Browse Source

Add container scanning (#164)

* Add container scanning

* Use correct image name
pull/165/head
Matt Bishop 1 year ago committed by GitHub
parent
commit
d2f10423fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      .github/workflows/build.yml

13
.github/workflows/build.yml

@ -90,3 +90,16 @@ jobs: @@ -90,3 +90,16 @@ jobs:
platforms: linux/amd64
push: true
tags: ${{ steps.image-name.outputs.name }}
- name: Scan Docker image
id: container-scan
uses: anchore/scan-action@3343887d815d7b07465f6fdcd395bd66508d486a # v3.6.4
with:
image: ${{ steps.image-name.outputs.name }}
fail-build: false
output-format: sarif
- name: Upload Grype results to GitHub
uses: github/codeql-action/upload-sarif@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
with:
sarif_file: ${{ steps.container-scan.outputs.sarif }}

Loading…
Cancel
Save