-
Notifications
You must be signed in to change notification settings - Fork 1.8k
GitHub Actions
Jan Macku edited this page Mar 2, 2024
·
4 revisions
GitHub action for running ShellCheck differentially. New findings are reported directly at GitHub pull requests (using SARIF format).
name: Differential ShellCheck
on:
push:
branches: [ main ]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read
steps:
- name: Repository checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}