[ci] Tighten workflow permissions to least-privilege (#16349)

This commit is contained in:
Jesse Hills
2026-05-11 17:15:53 +12:00
committed by GitHub
parent 5dadfe6367
commit fe66f9ba41
16 changed files with 57 additions and 44 deletions
+2 -3
View File
@@ -5,9 +5,8 @@ on:
types: [opened, synchronize]
permissions:
contents: read # Needed to fetch PR details
issues: write # Needed to create and update comments (PR comments are managed via the issues REST API)
pull-requests: write # also needed?
issues: write # issues.createComment / updateComment to post the external-component usage instructions on the PR
pull-requests: read # pulls.listFiles to enumerate which components changed
jobs:
external-comment: