Skip to content

Commit

Permalink
Merge pull request #694 from onekey-sec/grype-testing
Browse files Browse the repository at this point in the history
add docker container scanning with grype.
  • Loading branch information
kukovecz authored Jan 2, 2024
2 parents c722811 + e837b6d commit 38424f1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build-publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.DOCKER_IMAGE }},push-by-digest=true,name-canonical=true,push=true

- name: Docker container vulnerability scan
id: scan
uses: anchore/scan-action@v3
with:
image: ${{ env.DOCKER_IMAGE }}
fail-build: true
severity-cutoff: critical
only-fixed: true

- name: Upload SARIF report
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.scan.outputs.sarif }}

- name: Check unblob - help
run: docker run --rm ${{ env.DOCKER_IMAGE }}:latest --help

Expand Down

0 comments on commit 38424f1

Please sign in to comment.