Skip to content

Commit

Permalink
[Dependencies] - Update .github/actions/sarif/action.yml to match the…
Browse files Browse the repository at this point in the history
… template repo
  • Loading branch information
credfeto committed Nov 27, 2023
1 parent 4b9e363 commit 0066a08
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/actions/sarif/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
script: |
core.info('Sarif Upload Completed');
core.notice('sarifId: ${{steps.sarif.outputs.sarif-id}}');

0 comments on commit 0066a08

Please sign in to comment.