Skip to content

Commit

Permalink
doc: update usage examples
Browse files Browse the repository at this point in the history
upload SARIF debug artifacts only when debug is enabled
  • Loading branch information
jamacku committed Feb 17, 2025
1 parent 21dd323 commit 95a8d25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/differential-shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ jobs:
display-engine: sarif-fmt
token: ${{ secrets.GITHUB_TOKEN }}

- if: always()
- if: runner.debug == '1' && !cancelled()
name: Upload artifact with defects in SARIF format
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: Differential ShellCheck SARIF
path: ${{ steps.ShellCheck.outputs.sarif }}
retention-days: 7

- if: always()
- if: !cancelled()
name: Upload artifact with defects in XHTML format
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- if: always()
- if: runner.debug == '1' && !cancelled()
name: Upload artifact with ShellCheck defects in SARIF format
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -364,14 +364,14 @@ Relative path to the SARIF file containing detected defects. Example of how to u
name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
- if: always()
- if: runner.debug == '1' && !cancelled()
name: Upload artifact with ShellCheck defects in SARIF format
uses: actions/upload-artifact@v4
with:
name: Differential ShellCheck SARIF
path: ${{ steps.ShellCheck.outputs.sarif }}
- if: always()
- if: !cancelled()
name: Upload SARIF to GitHub using github/codeql-action/upload-sarif
uses: github/codeql-action/upload-sarif@v2
with:
Expand All @@ -391,7 +391,7 @@ Relative path to the HTML file containing detected defects. Example of how to us
name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
- if: always()
- if: !cancelled()
name: Upload artifact with ShellCheck defects in HTML format
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 95a8d25

Please sign in to comment.