Skip to content

Commit

Permalink
Fix syntax again
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Oct 7, 2023
1 parent 0f08276 commit 52d6eaa
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 @@ -890,13 +890,12 @@ jobs:
run: cat trivy.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
# Requires GitHub Advanced Security
# https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security
# https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning
# https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github
if: always()
with:
sarif_file: 'trivy.sarif'
category: trivy
Expand All @@ -916,9 +915,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 52d6eaa

Please sign in to comment.