Repository navigation
ci: update actions to Node 24 releases and gate audit on high severity - #32
Merged
Merged
Conversation
GitHub deprecated the Node 20 runtime that actions/checkout v4, actions/setup-node v4, actions/setup-go v5 and pnpm/action-setup v4 target; runs only worked because the runner forced them onto Node 24. Pin the current Node 24 releases (checkout v7.0.1, setup-node v7.0.0, setup-go v7.0.0, pnpm/action-setup v6.1.0) by commit SHA. All inputs in use are unchanged; setup-node no longer writes the deprecated always-auth setting. Drop the dependency cache from the npm publish job, as setup-node advises for jobs with elevated permissions, so a poisoned cache cannot reach a published package. Gate pnpm audit on high severity: at the low threshold any new low or moderate advisory in a dependency blocked every pull request and release.
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.
Node 24 action releases
GitHub deprecated the Node 20 runtime. The release runs warned that
actions/checkout,actions/setup-nodeandpnpm/action-setuptarget Node 20 and were only running because the runner forced them onto Node 24.actions/setup-gov5 has the same problem.The actions are now pinned by commit SHA to their current Node 24 releases:
actions/checkoutactions/setup-nodeactions/setup-gopnpm/action-setupI checked each action's
action.ymland breaking-change notes:always-authremoval,go.mod-based cache key).setup-nodeno longer writes the deprecatedalways-authsetting, which removes theUnknown user config "always-auth"warning from npm publishing.No dependency cache in the npm publish job
setup-noderecommends disabling the dependency cache in jobs with elevated permissions. The npm job hasid-token: writeand publishes packages, so it now setspackage-manager-cache: falseand drops the pnpm cache. That way, a poisoned cache entry cannot end up in a published package. The Quality jobs keep their cache.pnpm audit --audit-level=highAt the
lowthreshold, any new low or moderate advisory in any dependency blocked every pull request and every release, whether or not the change touched dependencies. High and critical advisories still fail the build. The current dependency tree passes at both levels.Validation
actionlintreports no issues.checkout,setup-go,pnpm/action-setupandsetup-nodeon the new versions.mainplanstarget=none, because v3.4.0 and the Studio 0.2.0 packages are already published. That push also exercises the newcheckoutin thepreparejob.