Skip to content

Use npm ci instead of npm install in CI workflow#958

Draft
Copilot wants to merge 2 commits intomain-enterprisefrom
copilot/fix-code-scanning-alerts
Draft

Use npm ci instead of npm install in CI workflow#958
Copilot wants to merge 2 commits intomain-enterprisefrom
copilot/fix-code-scanning-alerts

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

npm install in CI is non-deterministic — it can silently fetch newer dependency versions and mutate package-lock.json, causing inconsistent builds across runs.

Change

  • .github/workflows/node-ci.yml: Replace npm install with npm ci

npm ci enforces lockfile integrity (fails if package-lock.json is out of sync with package.json) and never mutates it, ensuring reproducible builds.

Copilot AI changed the title [WIP] Fix code scanning alert 126 Use npm ci instead of npm install in CI workflow Mar 30, 2026
Copilot AI requested a review from decyjphr March 30, 2026 23:49
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.

2 participants