Update example workflow

Jan Macku
2024-03-02 14:05:15 +01:00
parent 95a6b74311
commit 50ce1f1013

@@ -9,6 +9,8 @@ GitHub action for running ShellCheck differentially. New findings are reported d
```yaml ```yaml
name: Differential ShellCheck name: Differential ShellCheck
on: on:
push:
branches: [ main ]
pull_request: pull_request:
branches: [main] branches: [main]
@@ -16,18 +18,25 @@ permissions:
contents: read contents: read
jobs: jobs:
test: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read
steps: steps:
- name: Repository checkout - name: Repository checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Differential ShellCheck - name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v3 uses: redhat-plumbers-in-action/differential-shellcheck@v5
with: with:
severity: warning
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
``` ```