Skip to content

[npm] Only return a chain if a node matches a vulnerable version#5785

Merged
mctofu merged 3 commits intomainfrom
mctofu/vuln-audit-safe-versions
Sep 23, 2022
Merged

[npm] Only return a chain if a node matches a vulnerable version#5785
mctofu merged 3 commits intomainfrom
mctofu/vuln-audit-safe-versions

Conversation

@mctofu
Copy link
Copy Markdown
Contributor

@mctofu mctofu commented Sep 22, 2022

Without this check we can surface already fixed versions of the dependency as needing to be updated which confuses Dependabot.

@mctofu mctofu marked this pull request as ready for review September 23, 2022 01:10
@mctofu mctofu requested a review from a team as a code owner September 23, 2022 01:10
Copy link
Copy Markdown
Contributor

@bdragon bdragon left a comment

Choose a reason for hiding this comment

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

Nice fix. Returning an empty array if the node's not vulnerable looks right to me 👍

Without this check we can surface already fixed versions of the
dependency as needing to be updated which confuses Dependabot.
@mctofu mctofu force-pushed the mctofu/vuln-audit-safe-versions branch from 4655875 to 1354268 Compare September 23, 2022 16:18
@mctofu mctofu merged commit 478b65e into main Sep 23, 2022
@mctofu mctofu deleted the mctofu/vuln-audit-safe-versions branch September 23, 2022 16:55
@pavera pavera mentioned this pull request Oct 31, 2022
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.

3 participants