Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Oct 7, 2023
1 parent faea2ed commit 0f08276
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,8 @@ jobs:
run: cat trivy-results.sarif | jq .

- name: Upload trivy scan results to GitHub Security tab
if: ${{ env.GITHUB_ADVANCED_SECURITY == 1 }}
if: ${{ always() && env.GITHUB_ADVANCED_SECURITY == 1 }}
uses: github/codeql-action/upload-sarif@v2
if: always()
with:
sarif_file: 'trivy-results.sarif'
category: trivy
Expand All @@ -466,9 +465,8 @@ jobs:
run: cat ${{ steps.scan-grype.outputs.sarif }} | jq .

- name: Upload grype scan results to GitHub Security tab
if: ${{ env.GITHUB_ADVANCED_SECURITY == 1 }}
if: ${{ always() && env.GITHUB_ADVANCED_SECURITY == 1 }}
uses: github/codeql-action/upload-sarif@v2
if: always()
with:
sarif_file: ${{ steps.scan-grype.outputs.sarif }}
category: grype
Expand Down

0 comments on commit 0f08276

Please sign in to comment.