From dd7f03302b2e07b2bc9f0cc5b2fce0fb75ac2b1d Mon Sep 17 00:00:00 2001 From: CodeCriticsCEO Date: Mon, 30 Dec 2024 18:42:54 -0800 Subject: [PATCH] Replace **/*.sh with find, since the former won't find all scripts --- GitHub-Actions.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/GitHub-Actions.md b/GitHub-Actions.md index 34abb1b..7b81b92 100644 --- a/GitHub-Actions.md +++ b/GitHub-Actions.md @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Run ShellCheck - run: shellcheck **/*.sh + run: find . -type f -name "*.sh" -exec shellcheck {} + ``` ## GitHub Advanced Security Integration @@ -87,16 +87,16 @@ jobs: ### 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 - name: Run ShellCheck run: | - shellcheck \ - --severity=warning \ # Set minimum severity - --shell=bash \ # Specify shell dialect - --format=gcc \ # Set output format - **/*.sh + find . -type f -name "*.sh" -exec shellcheck \ + --severity=warning \ + --shell=bash \ + --format=gcc \ + {} + ``` ### Common Options