Skip to content

Commit 6f7d593

Browse files
authored
ci: enable ShellCheck to run on push events
1 parent ea822a9 commit 6f7d593

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/differential-shellcheck.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
name: Differential ShellCheck
44
on:
5+
push:
56
pull_request:
67
branches: [ main ]
78

@@ -22,7 +23,15 @@ jobs:
2223
with:
2324
fetch-depth: 0
2425

25-
- name: Differential ShellCheck
26+
- id: ShellCheck
27+
name: Differential ShellCheck
2628
uses: redhat-plumbers-in-action/differential-shellcheck@v4
2729
with:
2830
token: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- if: ${{ always() }}
33+
name: Upload artifact with ShellCheck defects in SARIF format
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: Differential ShellCheck SARIF
37+
path: ${{ steps.ShellCheck.outputs.sarif }}

0 commit comments

Comments
 (0)