From 8428737057e89ee001fe3bca1c0cc9de8256fa28 Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Tue, 27 Sep 2022 17:03:21 -0600 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 Signed-off-by: Jan Macku Reviewed-by: Kamalesh Babulal Signed-off-by: Tom Hromatka (cherry picked from commit f8590647e6a901bfac455b6caac1c25363ac8a07) --- .github/workflows/continuous-integration.yml | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 -- 2.47.2