mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Add section for GitHub Actions - Differential ShellCheck
36
GitHub-Actions.md
Normal file
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 }}
|
||||
```
|
Reference in New Issue
Block a user