to get rid of the annoying message on new PRs.
Also, update the action to the latest version and drop now unnecessary
permissions.
See: https://github.com/redhat-plumbers-in-action/differential-shellcheck/issues/215
Addresses: https://github.com/systemd/mkosi/pull/1413#issuecomment-
1486700752
name: Differential ShellCheck
on:
+ push:
+ branches:
+ - main
pull_request:
branches:
- main
permissions:
security-events: write
- pull-requests: write
steps:
- name: Repository checkout
fetch-depth: 0
- name: Differential ShellCheck
- uses: redhat-plumbers-in-action/differential-shellcheck@v2
+ uses: redhat-plumbers-in-action/differential-shellcheck@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}