Repository navigation
ci: harden release build and workflow token permissions - #5359
Merged
Merged
Conversation
- Only use the pnpm dependency cache for pull request builds. The previous condition excluded main but not release tags, so release builds restored a cache written by runs on main. - Package and upload the npm tarball right after the build, before tests and coverage reporting run. - Pin the Coveralls reporter binary and skip it on tag builds. - Declare least-privilege GITHUB_TOKEN permissions in every workflow that relied on the repository default.
marvinhagemeister
approved these changes
Nov 12, 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.
Hardens the workflows that build the published package.
mainbut not for release tags, so tag builds restored a pnpm store written by runs onmain. It is now only used for pull request builds.pnpm run build, before tests and coverage tooling run in the workspace.v0.6.22instead oflatest, and skipped on tag builds.ci,size,benchmarks,run-benchandpr-reporternow declare least-privilegepermissionsinstead of inheriting the repository default.pr-reporter.ymlruns onworkflow_run, so its changes only take effect once this is onmain.