ci: route release publish install through Socket Firewall - #22
Merged
Merged
Conversation
peakematt
marked this pull request as ready for review
September 8, 2026 20:44
|
nigel-campbell
approved these changes
Sep 10, 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.
This repository installs public npm packages in three GitHub Actions paths: ordinary CI, the package release workflow, and the scheduled Socket reachability scan. Before this change, the CI install was still unscreened, and the release workflow only covered the package install itself.
This change routes those dependency downloads through the WorkOS Socket Firewall. CI now runs with read-only
contentspermission, checks out without persisted credentials, and enables the action's validated external-fork fallback only for the ordinary publicpull_requestpath. Same-repository pull requests andmainpushes still fail closed when the public firewall token is unavailable.The release workflow now configures the firewall before the pnpm manager setup, configures it again after
actions/setup-nodewrites the npm registry setting, and tears it down immediately afterpnpm install. The build and publish commands stay the same, including public access, trusted publishing provenance, latest/next tagging, and prerelease routing.The scheduled Socket analysis still uses its separate Socket API token. Its npm CLI install is screened by the firewall, then the public registry is restored before the scan uploads manifests to Socket.
Verify by checking
.github/workflows/ci.yml,.github/workflows/release.yml, and.github/workflows/socket-tier1-analysis.yml, then runactionlint .github/workflows/*.yml.