From 52d6eaa232fdfd3234990b767b426d4a2caf331a Mon Sep 17 00:00:00 2001 From: Jake Morrison Date: Sat, 7 Oct 2023 12:22:24 -0500 Subject: [PATCH] Fix syntax again --- .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 78df8db..dbd3591 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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