CI never runs the dependency audit or the coverage gate the repo defines #60
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The pull request pipeline runs
mix testandmix hex.audit.hex.auditonly checks whether a locked package has been retired, so a dependency with a published advisory passes, andmix testnever readstest_coverage, so the 87 percent threshold is never evaluated. The localprecommitalias does rundeps.audit, which means the gate a contributor runs is stricter than the one that blocks a merge, and AGENTS.md says precommit mirrors CI.Evidence
At
2f150f66:.forgejo/workflows/ci.yml:190isrun: mix testand:193isrun: mix hex.audit.mix.exs:199wiresprecommit: ["format --check-formatted", "credo --strict", "deps.audit", "test"].mix.exs:18setssummary: [threshold: 87], andmix.exs:179carriesmix_audit.AGENTS.md:20documents the coverage gate and:21says precommit mirrors CI..github/workflows/ci.yml:44repeats the plainmix testin the mirror workflow.Expected
The pipeline runs the advisory audit and the coverage threshold the repository defines, and AGENTS.md describes what actually runs.
How to verify
Set the threshold to 100, or pin a dependency with a known advisory, and watch the pipeline stay green. Then swap the two steps for
mix deps.auditandmix test --coverand watch it fail on the same commit.Acceptance criteria
mix deps.audit.--coverso the threshold applies.Effort: S
Lens: ops