Skip to content

Commit

Permalink
ci(lint): add 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 Oct 11, 2023
1 parent 426d61e commit 3679290
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/differential-shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Differential ShellCheck
on:
push:
branches: [ dev, bugfix ]
pull_request:
branches: [ dev, bugfix ]

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest

permissions:
security-events: write

steps:
- name: Repository checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v4
with:
severity: warning
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3679290

Please sign in to comment.