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 report results directly in pull request.

documentation: https://github.com/redhat-plumbers-in-action/differential-shellcheck
  • Loading branch information
jamacku authored and xdelaruelle committed Aug 25, 2022
1 parent b202ea8 commit 0a06626
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/differential_shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
# https://github.com/redhat-plumbers-in-action/differential-shellcheck#readme

name: Differential ShellCheck
on:
pull_request:
branches: [master]

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:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0a06626

Please sign in to comment.