Warn on installation of vulnerable packages#1150
Merged
Merged
Conversation
c626e81 to
332cacc
Compare
ericmj
approved these changes
May 14, 2026
… advisory output - Bump `Hex.Dev.@ets_version` to 4 so registries extracted via `Hex.Dev.extract_registry/2` survive the version check in `Hex.Registry.Server.check_version/1`. - Extract `print_advisories/2` in `Hex.RemoteConverger` so retired and non-retired branches share the same severity-colored advisory output. - Add an integration test asserting the advisory warning is printed during `mix deps.get` for the resolved version.
Member
|
@maennchen I pushed a commit with some minor fixes/tweaks. |
** (MatchError) no match of right hand side value: {:error, "Hex is running in offline mode and the registry entry for package oidcc is not cached locally"}
(hex 2.4.3-dev) lib/hex/registry/server.ex:31: Hex.Registry.Server.prefetch/1
…n case of long output
- mix hex.audit: replace tables with stacked "Retired:" / "Advisories:" sections so long summaries and URLs no longer overflow column widths. Each retirement and each advisory is a self-contained block with a blank line between them, making it obvious where one ends and the next begins. - mix deps.get / deps.update: insert a blank line between consecutive advisory blocks (and after the retirement message) for the same reason. - format_advisory_ansi/2: underline URLs; drop unused format_advisory/1; replace :normal (which resets intensity, not color) with []. - remote_converger: thread retired/advisories through dep_changes so the registry is queried once per dep instead of three times. - Add a test for Registry.prefetch/1 raising a Mix.Error in offline mode when a package is not cached.
Member
|
This is great! Thanks so much for your work on this across all repos. 💜 💜 💜 |
Contributor
Author
|
@ericmj Thnaks for all your help. I’m excited to get this out 😁 |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Uh oh!
There was an error while loading. Please reload this page.