GitHub action for running ShellCheck differentially. New findings are reported directly at GitHub pull requests (using SARIF format).
name: Differential ShellCheck
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
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@v3
with:
severity: warning
token: ${{ secrets.GITHUB_TOKEN }}
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.