Conversation
Use the verified signed action release in a dedicated PR job. Include one controlled tarball URL to prove the action repairs the PR branch itself; the bot should restore the original lockfile exactly.
peakematt
marked this pull request as ready for review
September 14, 2026 19:01
|
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.
Bun can save Socket Firewall tarball URLs in
bun.lock, making later installs depend on an endpoint that contributors or external CI may not be able to access. This adds a dedicated pull-request workflow that repairs those URLs on the PR branch instead of asking contributors to clean them up manually.The workflow runs only for changes to the root
bun.lockand invokes the lockfile repair action at the full, verified GitHub-signed release SHA195977cfa38ab4d70363af5403a106dbc54a61eb. The action reads the committed PR head, restores Bun's native empty resolved-URL fields, and creates a single-file repair commit usingGITHUB_TOKEN. Clean locks produce no commit. Dirty forks fail with repair guidance and are never written to; default-branch writes and stale-head overwrites are refused inside the action.Only the dedicated repair job receives
contents: write. It checks out no project code, installs no dependencies, and receives no Socket Firewall secret. Existing Test, Lint, release, and Socket Tier 1 workflows—including their current firewall setup pins—are unchanged.Verified end-to-end on this draft: a controlled URL for the existing
chalk@5.6.2lock entry triggered the pinned action. It created a verifiedgithub-actions[bot]commit changing onlybun.lock, preserving the version/integrity and restoring the original file byte-for-byte. The final PR diff contains only the new workflow.Successful repair run:
https://github.com/workos/cli/actions/runs/34882496936
Repair commit:
9e42a5f
From the repository root, with Git and actionlint installed:
These checks passed. Local tests using the actual released normalizer also verified exact restoration and clean-file idempotence; the released controller suite covers fork and stale/default-branch guards. No external-fork PR was created for this rollout test. Application build/test/typecheck commands were not run locally for this workflow-only change; those remain covered by the existing hosted workflows.
Token-created commits may leave follow-up CI suppressed or awaiting approval. In this trial, GitHub held the follow-up Test and Lint workflows for approval; the successful repair is not proof that application tests ran on the bot commit.
Tracking:
https://linear.app/workos/issue/HELP-723