Skip to content

Commit 3999199

Browse files
jamackusergio-correia
authored andcommitted
ci(lint): add shell linter - Differential ShellCheck
It performs differential ShellCheck scans and report results directly in pull request. documentation: https://github.com/redhat-plumbers-in-action/differential-shellcheck Signed-off-by: Jan Macku <[email protected]>
1 parent 23f9bf7 commit 3999199

File tree

1 file changed

+30
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)