Skip to content

Commit 2f2aa46

Browse files
authored
Add shellcheck
1 parent 7294831 commit 2f2aa46

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/shellcheck.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ShellCheck
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
security-events: write
17+
18+
steps:
19+
- name: Repository checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- id: ShellCheck
25+
name: Differential ShellCheck
26+
uses: redhat-plumbers-in-action/differential-shellcheck@v5
27+
with:
28+
severity: warning
29+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)