From 5e9f6ced467afc24435c13004645b0d60a61cabc Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Wed, 6 Mar 2024 14:41:26 +0100 Subject: [PATCH] ci(lint): add shell linter - Differential ShellCheck It performs differential ShellCheck scans and reports results directly on GitHub. documentation: https://github.com/redhat-plumbers-in-action/differential-shellcheck Signed-off-by: Jan Macku --- .github/workflows/ci.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 60f9adbe24f..e6764f40df2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,6 +37,24 @@ jobs: source venv/bin/activate pre-commit run --color=always --all-files --show-diff-on-failure + lint: + runs-on: ubuntu-latest + + permissions: + security-events: write + + steps: + - name: Repository checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - id: ShellCheck + name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + distcheck: runs-on: ubuntu-latest strategy: