We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e6fcde commit 47f5bbdCopy full SHA for 47f5bbd
1 file changed
.github/workflows/shellcheck.yml
@@ -1,21 +1,26 @@
1
+---
2
name: ShellCheck
3
-on: [push, pull_request]
4
+"on":
5
+ push:
6
+ branches: [main]
7
+ paths:
8
+ - "**/*.sh"
9
+ pull_request:
10
11
12
+
13
+permissions:
14
+ contents: read
15
16
jobs:
17
shellcheck:
18
name: Run ShellCheck
19
runs-on: ubuntu-latest
20
timeout-minutes: 5
21
steps:
- - name: Checkout code
- uses: actions/checkout@v6
-
- - name: Install ShellCheck
- run: sudo apt-get install -y shellcheck
- - name: Bash Syntax Check
- run: find . -type f -name "*.sh" -exec bash -n {} \;
22
+ - uses: actions/checkout@v6
23
- - name: Run ShellCheck
- run: find . -type f -name "*.sh" -exec shellcheck --severity=warning {} +
24
+ - uses: ludeeus/action-shellcheck@2.0.0
25
+ with:
26
+ severity: warning
0 commit comments