Skip to content

Commit

Permalink
change grype outputs (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
some-natalie authored Nov 7, 2023
1 parent f305660 commit 5b86dc7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,23 @@ jobs:
ghcr.io/${{ github.repository }}/${{ matrix.os }}:${{ env.SHA_SHORT }}
ghcr.io/${{ github.repository }}/${{ matrix.os }}:${{ env.VERSION }}-${{ env.SHA_SHORT }}
- name: Download Grype
uses: anchore/scan-action/download-grype@v3
id: grype
with:
grype-version: "v0.72.0"

- name: Scan it
uses: anchore/scan-action@v3
id: scan
with:
image: "ghcr.io/${{ github.repository }}/${{ matrix.os }}:${{ env.SHA_SHORT }}"
fail-build: false
run: |
${{steps.grype.outputs.cmd}} -o sarif -f ${{github.workspace}}/results.sarif \
ghcr.io/${{ github.repository }}/${{ matrix.os }}:${{ env.SHA_SHORT }}
- name: Upload the container scan report
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.scan.outputs.sarif }}
sarif_file: ${{ github.workspace }}/results.sarif
category: ${{ matrix.os }}

- name: Generate that SBOM
uses: anchore/sbom-action@v0
Expand Down

0 comments on commit 5b86dc7

Please sign in to comment.