You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove over-provisioned actions scope from GITHUB_TOKEN permissions
The `actions: write` (and `actions: read` in scorecard) permissions added
in quickwit-oss#5946 are unnecessary: actions/cache and actions/upload-artifact
authenticate via ACTIONS_RUNTIME_TOKEN, not GITHUB_TOKEN, and
actions/download-artifact only uses GITHUB_TOKEN when its github-token
input is explicitly set.
Where removing `actions: write` left only `contents: read` (matching the
workflow-level default), the redundant job-level permissions block is
removed entirely.
For the tests and lints jobs in ci.yml, `actions: write` is replaced
with `pull-requests: read` which dorny/paths-filter actually needs to
read PR file lists.
0 commit comments