From: Jan Macku Date: Tue, 16 Aug 2022 13:40:06 +0000 (+0200) Subject: ci(lint): add shell linter - Differential ShellCheck X-Git-Tag: v2.39-rc1~547^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fbc6ec5d3ca478453727defb6f50a9c7ecba1a1;p=thirdparty%2Futil-linux.git ci(lint): add shell linter - Differential ShellCheck It performs differential ShellCheck scans and report results directly in pull request. documentation: https://github.com/redhat-plumbers-in-action/differential-shellcheck --- diff --git a/.github/workflows/differential-shellcheck.yml b/.github/workflows/differential-shellcheck.yml new file mode 100644 index 0000000000..52eb6811c6 --- /dev/null +++ b/.github/workflows/differential-shellcheck.yml @@ -0,0 +1,30 @@ +--- +# https://github.com/redhat-plumbers-in-action/differential-shellcheck#readme + +name: Differential ShellCheck +on: + pull_request: + branches: + - master + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + + permissions: + security-events: write + pull-requests: write + + steps: + - name: Repository checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }}