Audit Hex dependencies with mix hex.audit - #90
Merged
Merged
Conversation
mix_audit reads only a GitHub advisory mirror and misses the Hex advisory feed. Hex 2.5.1 and newer report advisories in mix hex.audit; the workflow installs the latest Hex with mix local.hex.
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.
The daily security audit now runs
mix hex.auditinstead ofmix deps.audit.Before:
security.ymlranMIX_ENV=test mix deps.auditfrom themix_audit2.1.5 dependency.Problem:
mix_auditreads only a GitHub advisory mirror. It misses the Hex advisory feed (EEF CNA).mix_auditand two YAML deps only for this one check.After:
security.ymlrunsMIX_ENV=test mix hex.audit. It fails on a security advisory and on a retired package.mix_audit,yaml_elixir, andyamerlare gone frommix.exsandmix.lock.Advisories: none. No bumps and no waivers.
Details and checks
mix hex.auditfrom 2.5.1 on. The workflow runsmix local.hex --force, which installs the latest Hex, so CI gets 2.5.1 or newer.mix deps.unlock --unusedremovedmix_audit,yaml_elixir, andyamerl.jasonstays, becausecredoneeds it.mix hex.auditin the branch: "No retired or security advisory packages found".MIX_ENV=test mix compile --warnings-as-errors: passes.Security Auditworkflow still passes onmainafter the merge.