chore(security): harden publish workflow vs Mini Shai-Hulud#6
Merged
Conversation
…shai-hulud) Mitigations vs the Mini Shai-Hulud npm supply-chain campaign (2026-05-11) that hijacked TanStack/Mistral/UiPath/OpenSearch publish runners mid-OIDC flow and forged signed provenance attestations. - Pin actions/checkout, actions/setup-node, step-security/harden-runner to SHAs to defeat tag-rewrite attacks. - Add step-security/harden-runner with egress allowlist (blocks getsession.org, IMDS 169.254.169.254, vault.svc.cluster.local). - Pass --ignore-scripts to npm ci to block transitive postinstall scripts (the worm's vector). Our own publish lifecycle (prepublishOnly/prepack) still runs via npm publish. - Add contents: read to job permissions; keep id-token: write. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This was referenced May 13, 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.
Summary
Hardens the standalone publish workflow vs Mini Shai-Hulud npm supply-chain campaign (2026-05-11). See companion PR brickhouse-tech/.github#7.
Local audit confirmed we are not breached — last `@brickhouse-tech/xml2js` publish (1.1.8, 2026-04-04) predates the attack by 5 weeks. This is preemptive hardening for the next release.
Changes
Test plan
🤖 Generated with Claude Code