Skip to content

Commit

Permalink
ci(lint): add shell linter - Differential ShellCheck
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jamacku committed Mar 6, 2024
1 parent df6bcf2 commit 5e9f6ce
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5e9f6ce

Please sign in to comment.