fix: add least-privilege permissions to workflows#665
Open
eniayomi wants to merge 3 commits into
Open
Conversation
Address actions/missing-workflow-permissions on the four workflows. - cla.yml: CLA bot needs pull-requests/statuses:write to comment and set status; actions:write to re-trigger itself. Signatures repo is written via PERSONAL_ACCESS_TOKEN, not GITHUB_TOKEN. - lint.yml, test.yml: contents:read for checkout. - release.yml: contents:write because gnosis/changesets-action-github-releases pushes tags and creates releases.
|
Author
|
I have read the CLA Document and I hereby sign the CLA |
Replace the direct contributor-assistant/github-action invocation with the centralised reusable action at safe-global/github-reusable-workflows (commit f72a861e — main 2026-05-27). The reusable action wraps contributor-assistant @ v2.6.1 and points the signature writes at the cla-signatures repo's 'signatures' branch (outside the ruleset that was rejecting bot commits on main). Requires the REUSABLE_WORKFLOWS_TOKEN repo/org secret. Allowlist preserved from the previous workflow.
luqmanbello
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves the four
actions/missing-workflow-permissionswarnings by adding least-privilegepermissionsblocks.cla.yml: CLA bot needspull-requests/statuses: writeto comment and set status;actions: writeso it can re-trigger itself. Signatures repo is written viaPERSONAL_ACCESS_TOKEN, notGITHUB_TOKEN.lint.yml,test.yml:contents: readfor checkout.release.yml:contents: writebecausegnosis/changesets-action-github-releasespushes tags and creates releases.Actions were already SHA-pinned, no SHA changes needed.