File tree Expand file tree Collapse file tree
.github/workflows/.github/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Differential ShellCheck
2+
3+ on :
4+ push :
5+ paths :
6+ - ' **.sh'
7+ - ' .github/workflows/scripts-checks.yaml'
8+ branches : [ main ]
9+ pull_request :
10+ paths :
11+ - ' **.sh'
12+ - ' .github/workflows/scripts-checks.yaml'
13+ branches : [ 'main' ]
14+
15+ permissions :
16+ contents : read
17+
18+ jobs :
19+ shellcheck-lint :
20+ runs-on : ubuntu-latest
21+
22+ permissions :
23+ security-events : write
24+
25+ steps :
26+ - name : Repository checkout
27+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
28+ with :
29+ # Differential ShellCheck requires full git history
30+ fetch-depth : 0
31+
32+ - id : ShellCheck
33+ name : Differential ShellCheck
34+ uses : redhat-plumbers-in-action/differential-shellcheck@0d9e5b29625f871e6a4215380486d6f1a7cb6cdd # v5
35+ with :
36+ token : ${{ secrets.GITHUB_TOKEN }}
37+
38+ - if : always()
39+ name : Upload artifact with ShellCheck defects in SARIF format
40+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
41+ with :
42+ name : Differential ShellCheck SARIF
43+ path : ${{ steps.ShellCheck.outputs.sarif }}
You can’t perform that action at this time.
0 commit comments