Repository navigation
security: audit with mix hex.audit and drop mix_audit - #83
Merged
Merged
Conversation
mix_audit reads only a GitHub advisory mirror and misses the Hex advisory feed. mix hex.audit (Hex 2.5.1 or newer) reports both retirements and advisories. mix local.hex --force in the workflow installs the newest 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.
Before: the daily security workflow runs
MIX_ENV=test mix deps.audit, which needs themix_auditdev dependency.Problem:
mix_audit2.1.5 reads only a GitHub advisory mirror. It misses the Hex advisory feed (EEF CNA).yaml_elixirandyamerlfor nothing else.After: the workflow runs
mix hex.audit, which reports advisories and retired packages from Hex itself (Hex 2.5.1 or newer).mix_audit,yaml_elixir, andyamerlleavemix.exsandmix.lock.Details
security.ymlalready runsmix local.hex --force, which installs the newest Hex, so CI gets 2.5.1 or newer.mix hex.auditreads the lock, so it needs noMIX_ENV=test.mix hex.auditin the branch:No retired or security advisory packages found.mix compile --warnings-as-errors: passes.Security Auditworkflow still reports a failed audit as an issue; the step name did not change.