Skip to content

Commit 513d65d

Browse files
committed
fix(cli): enhance fix dry-run to show computed details
- Show organization, ecosystems, target vulnerabilities - Show major updates setting and range style - Include execute action when applyFixes is enabled
1 parent fcb45f4 commit 513d65d

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

packages/cli/src/commands/fix/cmd-fix.mts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,25 @@ async function run(
426426
type: 'fetch',
427427
description: 'Scan project dependencies for vulnerabilities',
428428
target: cwd,
429+
details: {
430+
organization: orgSlug,
431+
ecosystems: validatedEcosystems.length
432+
? validatedEcosystems.join(', ')
433+
: 'all',
434+
},
429435
},
430436
{
431437
type: 'fetch',
432438
description: 'Analyze vulnerability fix options',
439+
details: {
440+
targets: all
441+
? 'all vulnerabilities'
442+
: ghsas.length
443+
? ghsas.join(', ')
444+
: 'auto-discovered',
445+
majorUpdates: disableMajorUpdates ? 'disabled' : 'enabled',
446+
rangeStyle,
447+
},
433448
},
434449
]
435450

@@ -439,9 +454,6 @@ async function run(
439454
description: 'Update package manifest files with fixes',
440455
target: 'package.json and lock files',
441456
})
442-
}
443-
444-
if (spinner) {
445457
actions.push({
446458
type: 'execute',
447459
description: 'Run package manager to install updated dependencies',

0 commit comments

Comments
 (0)