-
Notifications
You must be signed in to change notification settings - Fork 35
change discoverGhsaIds to use coana cli command 'find-vulnerabilities' #958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change discoverGhsaIds to use coana cli command 'find-vulnerabilities' #958
Conversation
bump coana version
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this 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
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
@cursor review |
There was a problem hiding this 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
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no bugs!
Comment @cursor review or bugbot run to trigger another review on this PR
| : []), | ||
| ...fixConfig.unknownFlags, | ||
| ], | ||
| ['find-vulnerabilities', cwd, '--manifests-tar-hash', tarHash], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfblaa Love the new command!
['find-vulnerabilities', cwd, '--manifests-tar-hash', tarHash]
<-- if there was also a --json flag we could get the output as json to simplify parsing
Ideally the less we parse the more resilient it is to changes
Ported from v1.x commit cdd5971 (#958) - Replace compute-fixes-and-upgrade-purls discovery with simpler find-vulnerabilities command - Parse GHSA IDs from JSON output on stdout instead of temp file - Remove temp file creation/cleanup for discovery - Add error handling for JSON parsing - Simplify discovery logic with direct stdout parsing The find-vulnerabilities command is more efficient and cleaner than using compute-fixes-and-upgrade-purls with --output-file for discovery. Based on PR #958
bump coana version
Note
Use Coana
find-vulnerabilities(JSON output) forsocket fixGHSA discovery, update tests and PR flow accordingly, bump@coana-tech/clito 14.12.110, and release v1.1.40 with a bug fix.socket fixfind-vulnerabilitiesand parse JSON output for GHSA IDs.--manifests-tar-hashand piped stdio.src/commands/fix/handle-fix-limit.test.mtsto expectfind-vulnerabilitiesand JSON ID output; validate limit and PR-adjustment behavior.1.1.40and updateCHANGELOG.md(fix vulnerability discovery; note Coana CLI update).@coana-tech/clito14.12.110.Written by Cursor Bugbot for commit 7dcf13e. Configure here.