diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 000000000..1a358730e --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,26 @@ +name: Lint Bash Scripts + +on: + pull_request: + paths: + - 'scripts/**.sh' + push: + branches: + - main + paths: + - 'scripts/**.sh' + +permissions: + contents: read + +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # pin@v6.0.1 + with: + persist-credentials: false + + - name: Run ShellCheck + run: shellcheck ./scripts/**/*.sh