Skip to content

fix(ci): front npm installs with safe-chain - #20

Merged
ryandgood merged 1 commit into
masterfrom
fix/safe-chain-workflows
Aug 10, 2026
Merged

fix(ci): front npm installs with safe-chain#20
ryandgood merged 1 commit into
masterfrom
fix/safe-chain-workflows

Conversation

@ryandgood

Copy link
Copy Markdown
Contributor

Both workflows installed dependencies unguarded. The release job holds a write-scoped GITHUB_TOKEN, so an install script in a compromised transitive dependency could publish releases from it.

  • Adopts janetechinc/shared-actions/setup-node, which puts Aikido safe-chain on PATH before any npm invocation and installs with npm ci --ignore-scripts
  • Node 18 → 24 (18 is end-of-life; 24 is current LTS)
  • npx semantic-releasenpx --no semantic-release, so a missing local install fails the job instead of silently fetching from the registry

Stacked on #19 (which pins semantic-release, the dependency --no now requires) and based on that branch, so the diff here is workflows only. Merge #19 first; this retargets to master automatically.

Part of the org-wide npm supply-chain remediation.

🤖 Generated with Claude Code

@tomroth

tomroth commented Aug 10, 2026

Copy link
Copy Markdown

Approval contingent on redirecting target branch to main in the PR

@ryandgood
ryandgood changed the base branch from chore/pin-semantic-release to master August 10, 2026 19:35
Both workflows installed dependencies unguarded. The release job holds a write-scoped
GITHUB_TOKEN, so an install script in a compromised transitive dependency could publish
releases from it.

Adopts janetechinc/shared-actions/setup-node, which puts Aikido safe-chain on PATH before
any npm invocation and installs with `npm ci --ignore-scripts`. Also bumps Node 18 -> 24
(18 is end-of-life; 24 is current LTS) and switches to `npx --no semantic-release` so a
missing local install fails the job instead of silently fetching from the registry.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ryandgood
ryandgood force-pushed the fix/safe-chain-workflows branch from c241f31 to 5c87253 Compare August 10, 2026 19:35
@ryandgood
ryandgood merged commit f869fa2 into master Aug 10, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.5.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants