Skip to content

Conversation

@jfblaa
Copy link
Contributor

@jfblaa jfblaa commented Dec 4, 2025

Note

Adds ecosystem filtering and renames fix limit to pr-limit (CI-only), processes all vulns in local mode when no --id, and updates Coana CLI.

  • Fix command (socket fix):
    • New flag: --ecosystems to limit analysis by ecosystem; supports comma-separated and repeated flags with validation; values passed to coana as --purl-types.
    • Flag rename: --limit--pr-limit (kept --limit as hidden alias); applied only in CI/PR mode and auto-adjusted by existing open Socket Fix PRs.
    • Behavior: In local mode, pr-limit has no effect; when no --id is provided, discover and process all vulnerabilities.
  • Implementation:
    • Propagates ecosystems and PR limiting through cmd-fix.mts, handle-fix.mts, and coana-fix.mts; updates GHSA discovery and fix invocation.
  • Tests:
    • Extensive updates/additions covering --pr-limit, --ecosystems, ID parsing, and local vs CI behavior.
  • Release/Deps:
    • Bump version to 1.1.42; update @coana-tech/cli to 14.12.113; update CHANGELOG.md.

Written by Cursor Bugbot for commit 6b47dbc. Configure here.

@jfblaa jfblaa requested review from barslev, jdalton and mtorp December 4, 2025 14:39
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​coana-tech/​cli@​14.12.110 ⏵ 14.12.113891008096100

View full report

@socket-security-staging
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​coana-tech/​cli@​14.12.110 ⏵ 14.12.11389 +110080 +196100

View full report

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Comment @cursor review or bugbot run to trigger another review on this PR

minimumReleaseAge,
outputFile,
prCheck,
prLimit,
Copy link

Choose a reason for hiding this comment

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

Bug: Hidden --limit flag alias value is never used

The hidden limit flag is defined as an alias for prLimit, but the code only reads prLimit from cli.flags and never checks cli.flags['limit']. When a user passes --limit 5, meow stores this in a separate limit property, but the code uses the default value of prLimit (10) instead. Unlike the ghsa/id flags which are explicitly combined using cmdFlagValueToArray, there's no logic to merge or prefer the limit value over prLimit, making the --limit alias completely non-functional.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link
Contributor

@mtorp mtorp left a comment

Choose a reason for hiding this comment

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

Looks good ✅
I'll let @jdalton review and merge as well.

outputFile,
outputKind,
prCheck,
prLimit,
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need to check if the old hidden limit is set as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll follow up with a limit alias pr.

@SocketDev SocketDev deleted a comment from jfblaa Dec 4, 2025
@jdalton jdalton merged commit 39a114d into v1.x Dec 4, 2025
8 checks passed
@jdalton jdalton deleted the jfblaa/rea-323-socket-fix-all-and-ecosystems-support branch December 4, 2025 17:12
jdalton added a commit that referenced this pull request Dec 4, 2025
Changes:
- Add aliases: ['limit'] to prLimit flag definition
- Remove separate limit flag from hiddenFlags that was causing conflicts
- Add comprehensive tests for --limit alias functionality

The --limit flag now properly functions as a hidden alias for --pr-limit,
resolving the issue identified in PR #960 discussion.
jdalton added a commit that referenced this pull request Dec 9, 2025
Ported from v1.x commit 39a114d (#960)

- Add --ecosystems flag to limit fix analysis to specific package ecosystems
- Rename --limit to --prLimit for clarity (only affects CI/PR mode)
- In local mode, process all discovered/provided IDs without limit
- Update types, handlers, and tests to use prLimit and ecosystems
- Add ecosystem validation with getEcosystemChoicesForMeow()

Based on PR #960
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.

4 participants