ci: update Differential ShellCheck

Run on pushes and drop unnecessary write access.

Should avoid pull-requests comments like
https://github.com/shadow-maint/shadow/pull/695#issuecomment-1491876950
This commit is contained in:
Christian Göttsche 2023-03-31 14:56:23 +02:00 committed by Iker Pedrosa
parent e5905c4b84
commit 189a01f7a7

View File

@ -38,13 +38,11 @@ jobs:
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v2
differential-shellcheck: differential-shellcheck:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
security-events: write security-events: write
pull-requests: write
steps: steps:
- name: Checkout repository - name: Checkout repository