diff --git a/.github/workflows/differential-shellcheck.yml b/.github/workflows/differential-shellcheck.yml new file mode 100644 index 0000000..e1966d0 --- /dev/null +++ b/.github/workflows/differential-shellcheck.yml @@ -0,0 +1,27 @@ +name: Differential ShellCheck +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + + permissions: + security-events: write + + steps: + - name: Repository checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.shellcheckrc b/.shellcheckrc new file mode 100644 index 0000000..90e42b5 --- /dev/null +++ b/.shellcheckrc @@ -0,0 +1,2 @@ +# Tell ShellCheck to use bash when checking scripts +shell=bash