From 7f1867d436175d5be79c99acfaa8978cdc57e84d Mon Sep 17 00:00:00 2001 From: sarfraj89 Date: Fri, 9 Jan 2026 23:40:10 +0530 Subject: [PATCH] Run ShellCheck directly in GitHub Actions Signed-off-by: sarfraj89 --- .github/workflows/shellcheck.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 261cddc41..c5cbf5b03 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -1,14 +1,14 @@ -name: ShellCheck +name: Lint Bash Scripts on: - workflow_dispatch: pull_request: + paths: + - 'scripts/**.sh' push: branches: - main paths: - - '**.sh' - - '.github/workflows/shellcheck.yml' + - 'scripts/**.sh' permissions: contents: read @@ -17,12 +17,10 @@ jobs: shellcheck: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout uses: actions/checkout@v4 + with: + persist-credentials: false - name: Run ShellCheck - uses: ludeeus/action-shellcheck@master - - with: - scandir: scripts - severity: error + run: shellcheck ./scripts/**/*.sh \ No newline at end of file