From 249d9078b0948cb32b205d551fafac6f79753c2f Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Tue, 30 Aug 2022 15:56:04 +0200 Subject: [PATCH] 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 --- .github/workflows/differential-shellcheck.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/differential-shellcheck.yml diff --git a/.github/workflows/differential-shellcheck.yml b/.github/workflows/differential-shellcheck.yml new file mode 100644 index 00000000..d3cbc361 --- /dev/null +++ b/.github/workflows/differential-shellcheck.yml @@ -0,0 +1,26 @@ +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@2541b1294d2704b0964813337f33b291d3f8596b + with: + fetch-depth: 0 + + - name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@a14889568f6210b361eb29e16f3b07f512fca846 + with: + token: ${{ secrets.GITHUB_TOKEN }}