From: Jan Macku Date: Tue, 27 Sep 2022 22:29:23 +0000 (-0600) Subject: ci(lint): add shell linter - Differential ShellCheck X-Git-Tag: v3.1.0~306 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F258%2Fhead;p=thirdparty%2Flibcgroup.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 Signed-off-by: Jan Macku Reviewed-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index a996f9b8..a9692b94 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -39,6 +39,27 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 + # Doc: https://github.com/redhat-plumbers-in-action/differential-shellcheck#usage + differential-shellcheck: + name: Differential ShellCheck + if: github.event_name == 'pull_request' + runs-on: ubuntu-latest + + permissions: + contents: read + security-events: write + pull-requests: write + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@v3 + with: + severity: warning + token: ${{ secrets.GITHUB_TOKEN }} + doxygen: name: Doxygen # Only run Doxygen against the main branch