ci: protect npm installs with Socket Firewall - #134
Open
peakematt wants to merge 1 commit into
Open
Conversation
peakematt
marked this pull request as ready for review
September 3, 2026 19:11
Greptile SummaryThis PR places Socket Firewall setup and teardown boundaries around every npm dependency download in CI, release, and scheduled Socket analysis workflows while preserving direct npm publication.
Confidence Score: 5/5The PR appears safe to merge, with no concrete changed-code failure established. The workflow callers, secret forwarding, permission intersection, install ordering, teardown placement, and direct npm publication boundary are internally consistent, and no actionable defect remains. Important Files Changed
|
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.
authkit-jsdownloads public npm packages in normal continuous integration, its reusable release workflow, and its scheduled Socket analysis workflow. Those downloads currently bypass the WorkOS Socket Firewall, while the release must still publish directly to npm.This change protects each download with action-only release
ca93dd8aa351f54f4729fe3377a9be23c631c25d. The selected-repositoryPUBLIC_SOCKET_FIREWALL_TOKENsecret is passed only to the setup action. Public fork pull requests can use the validated public-registry fallback, while same-repository and default-branch jobs remain fail-closed. Fork-reachable permissions are read-only and checkout credentials are no longer persisted.The reusable release workflow receives only the named firewall secret. It installs through Socket Firewall after
setup-node, then invokes teardown at the same release SHA before building or publishing. The scheduled Socket CLI install uses the same setup/install/teardown boundary. Existing test, build, trusted-publishing, release-selection, and reachability-analysis behavior is unchanged. Thepull_request_targettitle-lint workflow does not execute contributor-controlled code and remains outside the install path.Verify the workflow structure with:
go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.10 .github/workflows/*.ymlThe rollout classifier reports all three npm download jobs as protected with no ordering, release-reference, token, publication, or trust violations. The earlier public pilot provides external-fork and publication-boundary evidence for this shared workflow shape. No real package publication is performed by this change.