Skip to content

SK-2839: pin dependency versions and harden CI against supply chain attacks#220

Open
saileshwar-skyflow wants to merge 2 commits into
mainfrom
saileshwar/SK-2839-pin-versions-and-add-ignore-scripts
Open

SK-2839: pin dependency versions and harden CI against supply chain attacks#220
saileshwar-skyflow wants to merge 2 commits into
mainfrom
saileshwar/SK-2839-pin-versions-and-add-ignore-scripts

Conversation

@saileshwar-skyflow
Copy link
Copy Markdown
Collaborator

@saileshwar-skyflow saileshwar-skyflow commented Jun 3, 2026

Summary

  • Pin all dependencies in package.json to exact versions resolved in package-lock.json (removes all ^/~ prefixes from dependencies and devDependencies; peerDependencies unchanged)
  • Add --ignore-scripts to every npm install call across all 5 CI workflows (CI.yml, main.yml, release.yml, internal-release.yml, beta-release.yml) — 7 call sites total
  • Create .npmrc with ignore-scripts=true at repo root and samples/SkyflowElements/

Motivation

Hardens the repo against the Mini Shai-Hulud npm supply chain attack campaign, which exploits floating version ranges and lifecycle scripts (postinstall, prepare, etc.) to execute malicious code during npm install. Pre-flight audit confirmed zero legitimate install scripts in this repo's dependency tree.

…gainst supply chain attacks

- Pin all dependencies/devDependencies in package.json to exact locked
  versions from package-lock.json (remove ^ and ~ prefixes); peerDependencies
  unchanged
- Add --ignore-scripts to every npm install call across all 5 CI workflows
- Create .npmrc with ignore-scripts=true at repo root and samples/SkyflowElements/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Semgrep findings: No issues found, Good to merge.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Semgrep findings: No issues found, Good to merge.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant