Skip to content

Commit 40d65f2

Browse files
iavigorpecovnik
authored andcommitted
ci: least-privilege GITHUB_TOKEN in maintenance-lint-scripts-post
1 parent 79f2f2b commit 40d65f2

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/maintenance-lint-scripts-post.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,17 @@ on:
3030

3131
permissions:
3232
contents: read
33-
actions: read # required by actions/download-artifact@v4 when downloading from another workflow run via `run-id`
34-
pull-requests: write
35-
checks: write
36-
issues: write # documented requirement of reviewdog for PR-comment APIs
3733

3834
jobs:
3935
Post:
4036
name: Post ShellCheck and shfmt diagnostics
4137
runs-on: ubuntu-latest
38+
permissions:
39+
contents: read
40+
actions: read # required by actions/download-artifact@v4 when downloading from another workflow run via `run-id`
41+
pull-requests: write
42+
checks: write
43+
issues: write # documented requirement of reviewdog for PR-comment APIs
4244
# Run even on red-cross lint conclusions (`failure`) — the
4345
# artifact is uploaded via `if: always()` in the lint workflow,
4446
# and we want to surface diagnostics in the PR even when the

0 commit comments

Comments
 (0)