Replace **/*.sh with find, since the former won't find all scripts

CodeCriticsCEO
2024-12-30 18:42:54 -08:00
parent 52749a31e7
commit dd7f03302b

@@ -15,7 +15,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Run ShellCheck - name: Run ShellCheck
run: shellcheck **/*.sh run: find . -type f -name "*.sh" -exec shellcheck {} +
``` ```
## GitHub Advanced Security Integration ## GitHub Advanced Security Integration
@@ -87,16 +87,16 @@ jobs:
### Customizing ShellCheck Options ### Customizing ShellCheck Options
ShellCheck supports various options that can be used in your workflow: ShellCheck supports various options that can be used in your workflow (in this case, set minimum severity, specify shell dialect, and set output format):
```yaml ```yaml
- name: Run ShellCheck - name: Run ShellCheck
run: | run: |
shellcheck \ find . -type f -name "*.sh" -exec shellcheck \
--severity=warning \ # Set minimum severity --severity=warning \
--shell=bash \ # Specify shell dialect --shell=bash \
--format=gcc \ # Set output format --format=gcc \
**/*.sh {} +
``` ```
### Common Options ### Common Options