ci: protect dependency installs with Socket Firewall - #236
Open
peakematt wants to merge 2 commits into
Open
Conversation
peakematt
marked this pull request as ready for review
September 8, 2026 20:55
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.
Dependency installs in the public pull request, push, scheduled Socket scan, and release paths currently run directly against the public JavaScript registry. This change routes those installs through Socket Firewall with the pinned setup action and keeps external fork pull requests low privilege with fallback enabled only for the ordinary lint and test jobs.
The release workflow keeps its current reusable workflow call and
secrets: inheritbehavior. It tears down Socket Firewall after release-build dependency installation and after the local npm distribution smoke so artifact upload, npm trusted publishing, and Homebrew publishing keep their existing network and credential behavior. The test job also restores public registry access before the existing Bun binary build, because Bun downloads the compile runtime outside npm-compatible package manager configuration, then re-enables Socket Firewall for the local npm distribution smoke.The normal
bun install,npm install -g socket,npx workos,npm install -g workos, and publish commands are otherwise unchanged. I verified the workflow YAML parses,actionlintaccepts the changed workflows, and the Socket Firewall conformance helper only reports expected heuristic warnings for the unchanged local registry smoke and publish steps. Pull request checks cover the Linux lint and test jobs.