From 0f0827607c99a15569b194e0d373eb727ea35632 Mon Sep 17 00:00:00 2001 From: Jake Morrison Date: Sat, 7 Oct 2023 12:17:38 -0500 Subject: [PATCH] Fix syntax --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a23ff5..78df8db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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