Skip to content

Commit

Permalink
ci(lint): add shell linter - Differential ShellCheck (#483)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Update shellcheck.yml

Signed-off-by: Jan Macku <[email protected]>
Co-authored-by: Dries Vints <[email protected]>
  • Loading branch information
jamacku and driesvints authored Sep 26, 2022
1 parent 4fefa0f commit cd7b9b6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Differential ShellCheck

on:
pull_request:

permissions:
contents: read

jobs:
shellcheck:
runs-on: ubuntu-latest

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

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

0 comments on commit cd7b9b6

Please sign in to comment.