Use npm ci in issue automation workflows - #14702
Merged
Sean McManus (sean-mcmanus) merged 1 commit intoAug 25, 2026
Merged
Conversation
Copilot started reviewing on behalf of
Sean McManus (sean-mcmanus)
August 24, 2026 23:40
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Updates scheduled issue-automation workflows to restore production dependencies deterministically from .github/actions/package-lock.json.
Changes:
- Replaces
npm install --productionwithnpm ci --omit=dev. - Applies the change consistently across all 19 workflows.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/question-closer.yml |
Uses locked production dependencies. |
.github/workflows/question-closer-debugger.yml |
Uses locked production dependencies. |
.github/workflows/more-info-needed-closer.yml |
Uses locked production dependencies. |
.github/workflows/more-info-needed-closer-debugger.yml |
Uses locked production dependencies. |
.github/workflows/locker.yml |
Uses locked production dependencies. |
.github/workflows/investigate-costing-closer-debugger.yml |
Uses locked production dependencies. |
.github/workflows/investigate-closer-debugger.yml |
Uses locked production dependencies. |
.github/workflows/feature-request-reopener.yml |
Uses locked production dependencies. |
.github/workflows/feature-request-debugger.yml |
Uses locked production dependencies. |
.github/workflows/feature-request-closer-triage.yml |
Uses locked production dependencies. |
.github/workflows/feature-request-closer-no-milestone.yml |
Uses locked production dependencies. |
.github/workflows/external-closer-debugger.yml |
Uses locked production dependencies. |
.github/workflows/enhancement-reopener.yml |
Uses locked production dependencies. |
.github/workflows/enhancement-closer-triage.yml |
Uses locked production dependencies. |
.github/workflows/enhancement-closer-no-milestone.yml |
Uses locked production dependencies. |
.github/workflows/duplicate-closer.yml |
Uses locked production dependencies. |
.github/workflows/by-design-closer.yml |
Uses locked production dependencies. |
.github/workflows/by-design-closer-debugger.yml |
Uses locked production dependencies. |
.github/workflows/bug-debugger.yml |
Uses locked production dependencies. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sean McManus (sean-mcmanus)
marked this pull request as ready for review
August 25, 2026 01:19
Colen Garoutte-Carson (Colengms)
approved these changes
Aug 25, 2026
Sean McManus (sean-mcmanus)
deleted the
seanmcm/devbox2-wsl/agent16/use-npm-ci-issue-actions
branch
August 25, 2026 02:48
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
Use
npm ci --omit=devin the 19 scheduled issue-automation workflows so their production dependencies are installed exactly from.github/actions/package-lock.json.Why this helps
These workflows run on a schedule and automatically label, comment on, close, reopen, or lock issues. Their behavior depends on the JavaScript packages installed before each run, so the install should be repeatable for a given repository commit.
npm install --productioncan reconcile differences betweenpackage.jsonandpackage-lock.jsonwhile the workflow is running. That makes an accidental mismatch less obvious and can cause the workflow to run with a dependency graph other than the one recorded in the committed lockfile.npm ci --omit=devinstead:package.jsonandpackage-lock.jsonto agree, failing the job when they do not;node_modulesdirectory; andThis makes repeated scheduled runs from the same commit more predictable and turns dependency drift into a visible failure instead of silently changing what the automation runs. That is especially useful for workflows that act on user-facing issues without someone manually reviewing every scheduled execution.
This carries forward the supported deterministic dependency-restoration portion of #14701.
Validation
npm ci --omit=devfrom a clean.github/actionsdirectory with Node 24.18.1 and npm 11.16.0.package-lock.jsonbyte-identical.npm ci --omit=devrejects a temporarypackage.json/package-lock.jsonmismatch.git diff --checkare clean.