Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli/launch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export async function buildLaunchStrictJsonReport(
cwd,
'repo.dependencies',
'npm',
['install', '--package-lock-only', '--ignore-scripts'],
['ci', '--dry-run'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add --ignore-scripts to keep launch gate read-only

Switching repo.dependencies to npm ci --dry-run removed the previous --ignore-scripts guard, so lifecycle scripts can run during the launch gate. npm ci --help shows --ignore-scripts as an opt-in flag, and in practice npm ci --dry-run still executes preinstall scripts; that means repositories with install hooks can mutate files or trigger external side effects even in strict mode, which breaks the intended read-only/safe gate behavior.

Useful? React with 👍 / 👎.

'Run `npm install` to install dependencies.'
);
checks.push(depsCheck.check);
Expand Down
Loading