Add section for GitHub Actions - Differential ShellCheck

Jan Macku
2022-08-01 14:48:20 +02:00
parent fd57fa1bb3
commit 3b04e4acc8

36
GitHub-Actions.md Normal file

@@ -0,0 +1,36 @@
## Differential ShellCheck
GitHub action for running ShellCheck differentially. Findings are reported to GitHub using SARIF format.
- Source: [@redhat-plumbers-in-action/differential-shellcheck](https://github.com/redhat-plumbers-in-action/differential-shellcheck)
[Usage](https://github.com/redhat-plumbers-in-action/differential-shellcheck#usage):
```yaml
name: Differential ShellCheck
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
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@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
```