Repository navigation
Give CI a read-only token and remove the CLA workflow - #1455
Merged
Merged
Conversation
`ci.yml` had no `permissions:` block, so its token got the repository's default. Its jobs only read the repository, so the workflow now asks for `contents: read`. `vscode-release.yml` already does, and the publish-only release workflow sets its own. This repository takes no outside pull requests anymore, so nobody signs the CLA here, and its workflow goes.
EvilGenius13
approved these changes
Dec 1, 2026
graygilmore
approved these changes
Dec 1, 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.
In this PR
Gives every workflow an explicit token scope, and removes the CLA workflow.
Problem
ci.ymlhad nopermissions:block, so itsGITHUB_TOKENgot the repository's default. Its jobs only check out and read the code. The CLA workflow exists for outside contributors, and this repository won't take outside pull requests once it becomes a read-only mirror.Solution
ci.ymlcontents: readfor the whole workflow. No job needs morecla.ymlvscode-release.ymlcontents: readrelease.ymlcontents: readby default, writes only in the npm publish jobThe CLA check isn't a required status check on
main, so removing it blocks no merge.Validation
actionlint .github/workflows/ci.ymlis clean.