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 <jamacku@redhat.com>
This commit is contained in:
Jan Macku
2022-09-12 09:56:21 +02:00
committed by Patrick
parent 4e7bb4bfef
commit 668fc7d514

View File

@@ -0,0 +1,31 @@
# Doc: https://github.com/redhat-plumbers-in-action/differential-shellcheck#usage
---
name: Differential ShellCheck
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
permissions:
security-events: write
pull-requests: write
steps:
- name: Repository checkout
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 }}