Skip to content

[npm] Reject audits which don't have a fix we can apply#5815

Merged
mctofu merged 1 commit intomainfrom
mctofu/audit-fix-incomplete
Sep 30, 2022
Merged

[npm] Reject audits which don't have a fix we can apply#5815
mctofu merged 1 commit intomainfrom
mctofu/audit-fix-incomplete

Conversation

@mctofu
Copy link
Copy Markdown
Contributor

@mctofu mctofu commented Sep 30, 2022

I've seen this occurring when the package-lock.json is not in sync with the package.json. In these cases the result contains fix_available: true but the fix_updates property is empty or contains dependencies with missing target versions.

@mctofu mctofu marked this pull request as ready for review September 30, 2022 16:33
@mctofu mctofu requested a review from a team as a code owner September 30, 2022 16:33
@mctofu mctofu changed the title Reject audits which don't have a fix we can apply [npm] Reject audits which don't have a fix we can apply Sep 30, 2022
@mctofu mctofu force-pushed the mctofu/audit-fix-incomplete branch from cd5bfbf to b3b3bd1 Compare September 30, 2022 20:51
One reason for this is when the package-lock.json is not in sync with
the package.json.
@mctofu mctofu force-pushed the mctofu/audit-fix-incomplete branch from b3b3bd1 to 848c1e4 Compare September 30, 2022 21:52
@mctofu mctofu merged commit ac305a7 into main Sep 30, 2022
@mctofu mctofu deleted the mctofu/audit-fix-incomplete branch September 30, 2022 23:01
@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.

2 participants