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