Skip to content

Commit

Permalink
Enable upload of container scanning SARIF reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Jul 18, 2022
1 parent 5f8c104 commit 8b82330
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,23 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Perform vulnerability scanning
## Note: please move this to *before* the container publish steps after confirming a way to use anchore/scan-action with locally-built OCI images
- uses: anchore/scan-action@v3
- id: scan-grocy-backend
uses: anchore/scan-action@v3
with:
image: docker.io/grocy/${{ steps.build-grocy-backend.outputs.image-with-tag }}
acs-report-enable: true
fail-build: false # TODO: remove this when scan-action steps are moved to before container publish
- uses: anchore/scan-action@v3
- id: scan-grocy-frontend
uses: anchore/scan-action@v3
with:
image: docker.io/grocy/${{ steps.build-grocy-frontend.outputs.image-with-tag }}
acs-report-enable: true
fail-build: false # TODO: remove this when scan-action steps are moved to before container publish
- uses: github/codeql-action/upload-sarif@v2
with:
category: scan-grocy-backend
sarif_file: ${{ steps.scan-grocy-backend.outputs.sarif }}
- uses: github/codeql-action/upload-sarif@v2
with:
category: scan-grocy-frontend
sarif_file: ${{ steps.scan-grocy-frontend.outputs.sarif }}

0 comments on commit 8b82330

Please sign in to comment.