Skip to content

Commit

Permalink
Use correct paths for sarif files
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily committed Sep 16, 2024
1 parent f78ad12 commit b5ded86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/reusable-build-flavor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,20 @@ jobs:
sudo mv build/* .
sudo rm -rf build
mkdir trivy-sarif grype-sarif
sudo mv release/*trivy.sarif trivy-sarif/
sudo mv release/*grype.sarif grype-sarif/
mkdir trivy-results grype-results
sudo mv *trivy.sarif trivy-results/
sudo mv *grype.sarif grype-results/
- name: Upload Trivy scan results to GitHub Security tab
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: github/codeql-action/upload-sarif@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3
with:
sarif_file: 'trivy-sarif'
sarif_file: 'trivy-results'
category: ${{ inputs.flavor }}-${{ inputs.flavor_release }}-trivy
- name: Upload Grype scan results to GitHub Security tab
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: github/codeql-action/upload-sarif@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3
with:
sarif_file: 'grype-sarif'
sarif_file: 'grype-results'
category: ${{ inputs.flavor }}-${{ inputs.flavor_release }}-grype
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4
with:
Expand Down

0 comments on commit b5ded86

Please sign in to comment.