From 0066a083a134cf7fc7d6fca8fe2fccd9da5e533a Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Mon, 27 Nov 2023 19:22:39 +0000 Subject: [PATCH] [Dependencies] - Update .github/actions/sarif/action.yml to match the template repo --- .github/actions/sarif/action.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/actions/sarif/action.yml b/.github/actions/sarif/action.yml index c3fda1fa..d6245b95 100644 --- a/.github/actions/sarif/action.yml +++ b/.github/actions/sarif/action.yml @@ -22,19 +22,20 @@ runs: echo "Hash: ${{ hashfiles('**/*.sarif') }}" echo "SARIF_HASH=${{ hashfiles('**/*.sarif') }}" >> $GITHUB_ENV -# - if: inputs.REPO_VISIBILITY == 'public' && env.SARIF_HASH != '' -# name: "Upload SARIF file for diagnostics" -# id: sarif -# uses: github/codeql-action/upload-sarif@v2 -# with: -# sarif_file: ${{github.workspace}}/results -# category: dotnet -# token: ${{github.token}} -# wait-for-processing: true + - if: inputs.REPO_VISIBILITY == 'public' && env.SARIF_HASH != '' + name: "Upload SARIF file for diagnostics" + id: sarif + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: ${{github.workspace}}/results + category: dotnet + token: ${{github.token}} + wait-for-processing: true -# - name: "Sarif Upload Summary" -# shell: bash -# working-directory: ${{github.workspace}}/results -# run: | -# echo "Sarif Upload Completed" -# echo "sarifId: ${{steps.sarif.outputs.sarif-id}}" + - if: inputs.REPO_VISIBILITY == 'public' && env.SARIF_HASH != '' + name: "Sarif Upload Summary" + uses: actions/github-script@v7.0.1 + with: + script: | + core.info('Sarif Upload Completed'); + core.notice('sarifId: ${{steps.sarif.outputs.sarif-id}}');