Repository navigation
fix: align pinned global npm installs with scanning policy - #75975
Conversation
Use step-level NPM_CONFIG_IGNORE_SCRIPTS for shared global installs so exact version pins match the scanner's approved exception. Preserve local flags and release cooldown, test lifecycle behavior, and regenerate compiler-owned workflows. Co-authored-by: Copilot App <[email protected]>
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
There was a problem hiding this comment.
Reviewed the changed npm installation logic and regression coverage. I found no actionable correctness or maintainability issues in the changed lines. The global-install lifecycle protection is preserved via step-level NPM_CONFIG_IGNORE_SCRIPTS, while local and microVM paths retain their existing behavior. No inline comments.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd. The core change is sound: global installs keep the pinned npm install -g pkg@version form and move script protection to step-level NPM_CONFIG_IGNORE_SCRIPTS: 'true'. Requesting changes because one test fails on this head.
📋 Key Themes & Highlights
Blocking
TestWasmGolden_AllEnginesfails (codex, gemini, pi). The committed.goldenfixtures still expectnpm install --ignore-scripts -g. Runmake update-wasm-goldenand commit the result.
Non-blocking
- LSP global installs still use the flag (
lsp_manager.go:139), so the repo has two conventions for one policy. - Stale docs/comments still describe
--ignore-scriptsas universal:.github/aw/syntax-agentic.md:223,pkg/workflow/run_install_scripts_validation.go:5,16,pkg/workflow/workflow_data.go:218, andpkg/workflow/README.md:1489. - Unprotected global installs outside the shared installer: Crush, OpenCode, and DeepSeek lock files were already unprotected at base, so this is pre-existing. Hippo-memory and
@xenova/transformersare userrun:lines, not generator output. Claude Code and Playwright opt in viaRunInstallScripts: true. Worth an explicit decision.
Positive Highlights
- ✅ The cooldown test now runs real lifecycle-script markers against a local registry for host, global, and microVM modes, which is a strong regression guard.
- ✅
NPM_CONFIG_IGNORE_SCRIPTSis gated onIsGlobal && !RunInstallScripts, so the opt-in and local paths are unchanged.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~14 AIC · ⌖ ~2 AIC · ⊞ 6.3K
Comment /matt to run again
There was a problem hiding this comment.
🟡 Changes recommended
Stale WASM golden snapshots and unhandled npm 12 lifecycle-script approval requirements cause the affected golden and opt-in tests to fail.
2 open issues
What changed in this PR
This PR updates gh-aw’s shared npm installer to match the scanner’s pinned-global-install exception, targeting the alert cluster in #75970 while preserving lifecycle-script protection.
Changes:
- Moves global-install script protection to step-level
NPM_CONFIG_IGNORE_SCRIPTS; retains local and microVM flags. - Expands lifecycle-script and cooldown tests, and updates engine assertions and documentation.
- Regenerates 122 workflow lock files with the new command and environment format.
| File | Description |
|---|---|
pkg/workflow/wasm_golden_test.go |
Updates normalization inputs for global commands. |
pkg/workflow/run_install_scripts_validation_test.go |
Tests global script protection and opt-in behavior. |
pkg/workflow/pi_engine_test.go |
Updates Pi installation expectations. |
pkg/workflow/nodejs.go |
Emits environment-based protection for global installs. |
pkg/workflow/nodejs_cooldown_test.go |
Adds lifecycle checks across three installation modes. |
pkg/workflow/gemini_engine_test.go |
Updates Gemini installation expectations. |
pkg/workflow/factory_workflow_test.go |
Updates Factory installation and smoke assertions. |
pkg/workflow/engine_durable_test.go |
Updates durable-engine protection expectations. |
pkg/workflow/codex_engine_test.go |
Checks Codex’s new command and environment. |
pkg/workflow/atomic_workflow_test.go |
Updates Atomic installation and smoke assertions. |
docs/src/content/docs/reference/frontmatter.md |
Documents environment-based global script protection. |
.github/workflows/workflow-normalizer.lock.yml |
Updates protected Codex installs. |
.github/workflows/windows.lock.yml |
Updates the protected Codex install. |
.github/workflows/windows-grower.lock.yml |
Updates protected Codex installs. |
.github/workflows/weekly-safe-outputs-spec-review.lock.yml |
Updates the protected Pi install. |
.github/workflows/weekly-network-domains-audit.lock.yml |
Updates the protected Pi install. |
.github/workflows/weekly-issue-summary.lock.yml |
Updates the protected Pi install. |
.github/workflows/video-analyzer.lock.yml |
Updates the protected Pi install. |
.github/workflows/update-astro.lock.yml |
Updates the protected Codex install. |
.github/workflows/unbloat-docs.lock.yml |
Updates the protected Pi install. |
.github/workflows/terminal-stylist.lock.yml |
Updates the protected Pi install. |
.github/workflows/super-linter.lock.yml |
Updates the protected Pi install. |
.github/workflows/sub-issue-closer.lock.yml |
Updates the protected Pi install. |
.github/workflows/stale-repo-identifier.lock.yml |
Updates the protected Pi install. |
.github/workflows/spec-enforcer.lock.yml |
Updates protected Codex installs. |
.github/workflows/smoke-test-tools.lock.yml |
Updates the protected Pi install. |
.github/workflows/smoke-temporary-id.lock.yml |
Updates the protected Pi install. |
.github/workflows/smoke-service-ports.lock.yml |
Updates the protected Pi install. |
.github/workflows/smoke-pi.lock.yml |
Updates the protected Pi install. |
.github/workflows/smoke-pi-sub-agents.lock.yml |
Updates the protected Pi install. |
.github/workflows/smoke-pi-routed.lock.yml |
Updates the protected Pi install. |
.github/workflows/smoke-pi-routed-claude.lock.yml |
Updates the protected Pi install. |
.github/workflows/smoke-pi-auto.lock.yml |
Updates the protected Pi install. |
.github/workflows/smoke-otel-backends.lock.yml |
Updates the protected Codex install. |
.github/workflows/smoke-github-codex.lock.yml |
Updates the protected Codex install. |
.github/workflows/smoke-gemini.lock.yml |
Updates the protected Gemini install. |
.github/workflows/smoke-factory.lock.yml |
Updates the protected Factory install. |
.github/workflows/smoke-drive.lock.yml |
Updates protected Codex installs. |
.github/workflows/smoke-codex.lock.yml |
Updates protected Codex installs. |
.github/workflows/smoke-codex-routed.lock.yml |
Updates the protected Codex install. |
.github/workflows/smoke-codex-routed-openai.lock.yml |
Updates protected Codex installs. |
.github/workflows/smoke-codex-bare-auto.lock.yml |
Updates the protected Codex install. |
.github/workflows/smoke-codex-auto.lock.yml |
Updates the protected Codex install. |
.github/workflows/smoke-ci.lock.yml |
Updates the protected Codex install. |
.github/workflows/smoke-call-workflow.lock.yml |
Updates protected Codex installs. |
.github/workflows/smoke-azure-pi.lock.yml |
Updates the protected Pi install. |
.github/workflows/smoke-azure-codex.lock.yml |
Updates the protected Codex install. |
.github/workflows/smoke-atomic.lock.yml |
Updates the protected Atomic install. |
.github/workflows/skillet.lock.yml |
Updates protected Codex installs. |
.github/workflows/sighthound-security-scan.lock.yml |
Updates the protected Codex install. |
.github/workflows/security-review.lock.yml |
Updates protected Codex installs. |
.github/workflows/schema-feature-coverage.lock.yml |
Updates the protected Codex install. |
.github/workflows/schema-consistency-checker.lock.yml |
Updates the protected Codex install. |
.github/workflows/research.lock.yml |
Updates the protected Pi install. |
.github/workflows/repo-tree-map.lock.yml |
Updates the protected Pi install. |
.github/workflows/repo-audit-analyzer.lock.yml |
Updates the protected Codex install. |
.github/workflows/refactoring-cadence.lock.yml |
Updates the protected Pi install. |
.github/workflows/python-data-charts.lock.yml |
Updates protected Codex installs. |
.github/workflows/purelock.lock.yml |
Updates the protected Codex install. |
.github/workflows/pr-sous-chef.lock.yml |
Updates the protected Pi install. |
.github/workflows/ponytail-reviewer.lock.yml |
Updates the protected Codex install. |
.github/workflows/poem-bot.lock.yml |
Updates the protected Codex install. |
.github/workflows/pdf-summary.lock.yml |
Updates protected Codex installs. |
.github/workflows/notion-issue-summary.lock.yml |
Updates the protected Codex install. |
.github/workflows/necromancer.lock.yml |
Updates the protected Pi install. |
.github/workflows/metrics-collector.lock.yml |
Updates the protected Codex install. |
.github/workflows/lint-monster.lock.yml |
Updates protected Codex installs. |
.github/workflows/issue-triage-agent.lock.yml |
Updates the protected Codex install. |
.github/workflows/issue-monster.lock.yml |
Updates the protected Pi install. |
.github/workflows/issue-arborist.lock.yml |
Updates protected Codex installs. |
.github/workflows/hippo-embed.lock.yml |
Updates the protected Pi install. |
.github/workflows/grumpy-reviewer.lock.yml |
Updates the protected Codex install. |
.github/workflows/gpclean.lock.yml |
Updates protected Codex installs. |
.github/workflows/github-remote-mcp-auth-test.lock.yml |
Updates the protected Codex install. |
.github/workflows/functional-pragmatist.lock.yml |
Updates protected Codex installs. |
.github/workflows/front-page-copy-guard.lock.yml |
Updates the protected Codex install. |
.github/workflows/feature-grower.lock.yml |
Updates protected Codex installs. |
.github/workflows/example-permissions-warning.lock.yml |
Updates the protected Codex install. |
.github/workflows/example-failure-category-filter.lock.yml |
Updates protected Codex installs. |
.github/workflows/eslint-monster.lock.yml |
Updates the protected Codex install. |
.github/workflows/engine-conformance-pi.lock.yml |
Updates the protected Pi install. |
.github/workflows/engine-conformance-gemini.lock.yml |
Updates the protected Gemini install. |
.github/workflows/engine-conformance-factory.lock.yml |
Updates the protected Factory install. |
.github/workflows/engine-conformance-codex.lock.yml |
Updates the protected Codex install. |
.github/workflows/engine-conformance-atomic.lock.yml |
Updates the protected Atomic install. |
.github/workflows/duplicate-code-detector.lock.yml |
Updates the protected Pi install. |
.github/workflows/dev.lock.yml |
Updates the protected Pi install. |
.github/workflows/designer-drift-audit.lock.yml |
Updates the protected Codex install. |
.github/workflows/design-decision-gate.lock.yml |
Updates the protected Pi install. |
.github/workflows/dependabot-go-checker.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-windows-terminal-integration-builder.lock.yml |
Updates protected Codex installs. |
.github/workflows/daily-windows-defender-scan.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-storify.lock.yml |
Updates protected Codex installs. |
.github/workflows/daily-spending-forecast.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-semgrep-scan.lock.yml |
Updates protected Codex installs. |
.github/workflows/daily-repo-chronicle.lock.yml |
Updates the protected Pi install. |
.github/workflows/daily-regulatory.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-performance-summary.lock.yml |
Updates the protected Pi install. |
.github/workflows/daily-observability-report.lock.yml |
Updates protected Codex installs. |
.github/workflows/daily-news.lock.yml |
Updates the protected Pi install. |
.github/workflows/daily-multi-device-docs-tester.lock.yml |
Updates the protected Pi install. |
.github/workflows/daily-max-ai-credits-test.lock.yml |
Updates protected Codex installs. |
.github/workflows/daily-hippo-learn.lock.yml |
Updates the protected Pi install. |
.github/workflows/daily-go-test-parallelizer.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-function-namer.lock.yml |
Updates the protected Pi install. |
.github/workflows/daily-fact.lock.yml |
Updates protected Codex installs. |
.github/workflows/daily-evals-report.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-documentation-diagram.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-doc-updater.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-credit-limit-test.lock.yml |
Updates the protected Pi install. |
.github/workflows/daily-cli-tools-tester.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-cli-performance.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-cache-strategy-analyzer.lock.yml |
Updates protected Codex installs. |
.github/workflows/daily-awf-spec-compiler-surfacing.lock.yml |
Updates the protected Codex install. |
.github/workflows/daily-arxiv-researcher.lock.yml |
Updates protected Codex installs. |
.github/workflows/daily-architecture-diagram.lock.yml |
Updates protected Codex installs. |
.github/workflows/copilot-centralization-optimizer.lock.yml |
Updates the protected Codex install. |
.github/workflows/copilot-centralization-drilldown.lock.yml |
Updates protected Codex installs. |
.github/workflows/commit-changes-analyzer.lock.yml |
Updates the protected Codex install. |
.github/workflows/codex-github-remote-mcp-test.lock.yml |
Updates the protected Codex install. |
.github/workflows/cloclo.lock.yml |
Updates the protected Codex install. |
.github/workflows/cli-version-checker.lock.yml |
Updates the protected Pi install. |
.github/workflows/chaos-pr-bundle-fuzzer.lock.yml |
Updates the protected Codex install. |
.github/workflows/changeset.lock.yml |
Updates the protected Codex install. |
.github/workflows/bot-detection.lock.yml |
Updates the protected Codex install. |
.github/workflows/auto-triage-issues.lock.yml |
Updates the protected Codex install. |
.github/workflows/audit-workflows.lock.yml |
Updates the protected Codex install. |
.github/workflows/artifacts-summary.lock.yml |
Updates protected Codex installs. |
.github/workflows/api-consumption-report.lock.yml |
Updates the protected Codex install. |
.github/workflows/ai-moderator.lock.yml |
Updates the protected Pi install. |
.github/workflows/agentic-token-trend-audit.lock.yml |
Updates the protected Codex install. |
.github/workflows/ace-editor.lock.yml |
Updates the protected Codex install. |
.github/workflows/ab-testing-advisor.lock.yml |
Updates protected Codex installs. |
Review effort: Max (auto)
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 5329f99
|
Refresh all-engine WASM goldens, align LSP global lifecycle protection, update policy descriptions, and approve the isolated lifecycle fixture when npm supports allow-scripts. Co-authored-by: Copilot App <[email protected]>
|
In response to Ponytail Reviewer: no code change is needed for this status notification because it contains no actionable finding. Its reported no-op is not being treated as evidence of validation. |
|
In response to PR Specification Reviewer: no code change is needed because this notification contains no specification finding or requested correction. The reported no-op does not replace local validation or hosted scanning verification. |
|
In response to Design Decision Gate: no additional design change or ADR is needed because this notification reports no actionable decision or draft. The fix retains the existing installation policy rather than introducing a new one. |
|
In response to Matt Pocock Skills Reviewer and its associated review: accepted the stale golden, LSP consistency, and documentation findings and applied those fixes. The pre-existing unprotected installers and user-authored commands remain outside this PR's pinned-global cluster scope; intentional script opt-ins remain unchanged. |
|
In response to Test Quality Sentinel: no separate code change is needed because this status notification contains no test-quality finding. The concrete golden-fixture and npm compatibility findings are handled in their respective review threads. |
|
In response to PR Code Quality Reviewer: no change is needed for this notification or the associated review, which reports no actionable issue. The other reviewers' concrete corrections are handled independently. |
Work started: update the branch from Sous-chef requested-head: 5329f99 |
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 5329f99
|
Preserve the validated pinned-global npm changes while integrating main. Update the remaining Copilot LSP test to require the pinned command with step-level script suppression and cooldown. Co-authored-by: Copilot App <[email protected]>
|
In response to the assignment: integrated the fetched |
|
🎉 This pull request is included in a new release. Release: |

The npm code-scanning rule explicitly permits exact-version global installs, but its exception does not recognize the required
--ignore-scriptsflag. This causes six false-positive findings in the Atomic, Factory, and Codex conformance/smoke workflows.The shared npm installer now emits
npm install -g package@versionwith step-levelNPM_CONFIG_IGNORE_SCRIPTS: 'true'. Exact version pins, release-age cooldowns, expression indirection, and explicit script opt-in behavior are preserved. Local and microVM installs retain their existing flags. This uses the rule's documented exception without suppressing findings or claiming that top-level pins lock the transitive dependency graph.Updated regression tests and documentation, and regenerated 122 compiler-owned workflow lock files. The generated changes are limited to npm command and script-protection environment lines.
Validation
0b8172b64187c2ae8a63e2142c7b06777bb8f511: six findings before, zero after across the five affected workflows, with no scanner errors.make recompile: 365/365 workflows compiled successfully.make agent-report-progress: formatting, lint, impacted tests, and full workflow drift checks passed.Hosted code-scanning verification remains pending. No alerts were dismissed or closed manually.
Fixes: #75970