Skip to content

Give CI a read-only token and remove the CLA workflow - #1455

Merged
charlespwd merged 1 commit into
mainfrom
cpc-15/workflow-permissions
Dec 1, 2026
Merged

charlespwd merged 1 commit into
mainfrom
cpc-15/workflow-permissions

Conversation

@charlespwd

Copy link
Copy Markdown
Contributor

In this PR

Gives every workflow an explicit token scope, and removes the CLA workflow.

Problem

ci.yml had no permissions: block, so its GITHUB_TOKEN got 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

Workflow Token after this PR
ci.yml contents: read for the whole workflow. No job needs more
cla.yml deleted
vscode-release.yml unchanged, already contents: read
release.yml set in #1453: contents: read by default, writes only in the npm publish job

The CLA check isn't a required status check on main, so removing it blocks no merge.

Validation

  • actionlint .github/workflows/ci.yml is clean.
  • CI runs on this PR with the new scope.

`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.
@charlespwd charlespwd self-assigned this Dec 1, 2026
@charlespwd
charlespwd marked this pull request as ready for review December 1, 2026 17:06
@charlespwd
charlespwd requested a review from a team as a code owner December 1, 2026 17:06
@charlespwd
charlespwd merged commit 0131dc0 into main Dec 1, 2026
10 checks passed
@charlespwd
charlespwd deleted the cpc-15/workflow-permissions branch December 1, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants