You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] apm audit PACKAGE rejects plugin@marketplace and _local/<name> identifiers #3953
Reporting and investigating a bug need no permission. Before implementing a
substantive fix for inclusion in APM, obtain human scope approval and a review
contact on this issue. See Contributing.
Describe the bug apm audit PACKAGE rejects plugin@marketplace and _local/<name> identifiers, which the #3865 CHANGELOG line says are accepted. Root cause: commands/audit.py:995-1021 is a second package selector that diverged from the selector uninstall uses.
To Reproduce
Found by the 0.37 red team, confirmed on main 94b0c69.
Install a marketplace plugin (x@m) and a local package.
Run apm audit x@m and apm audit _local/<name>. Both are rejected.
Expected behavior apm audit resolves package identifiers through the same selector owner as apm uninstall, offline, and accepts every identifier form that uninstall accepts.
Additional context
0.37 red team finding F4. This is a consistency break between two commands.
changed the title [-][BUG] apm audit PACKAGE rejects plugin@marketplace and _local/<name> identifiers[/-][+][BUG] apm audit PACKAGE rejects plugin@marketplace and _local/<name> identifiers[/+]on Nov 19, 2026
Decision: approve
Area: project
Scope: Route apm audit PACKAGE selection through the uninstall selector owner, offline, so every identifier form uninstall accepts (plugin@marketplace, _local/, owner/repo) is accepted, with no second selector.
Done when: Tests show apm audit x@m and apm audit _local/ select the right package offline, matching uninstall; the duplicate selector in commands/audit.py is removed and guarded statically. It fails on main. One CHANGELOG line.
Out of scope: New audit options.
Review contact: Daniel Meppiel (@danielmeppiel)
Activity
[-][BUG] apm audit PACKAGE rejects plugin@marketplace and _local/<name> identifiers[/-][+][BUG] apm audit PACKAGE rejects plugin@marketplace and _local/<name> identifiers[/+]danielmeppiel commentedon Nov 19, 2026
Decision: approve
Area: project
Scope: Route apm audit PACKAGE selection through the uninstall selector owner, offline, so every identifier form uninstall accepts (plugin@marketplace, _local/, owner/repo) is accepted, with no second selector.
Done when: Tests show apm audit x@m and apm audit _local/ select the right package offline, matching uninstall; the duplicate selector in commands/audit.py is removed and guarded statically. It fails on main. One CHANGELOG line.
Out of scope: New audit options.
Review contact: Daniel Meppiel (@danielmeppiel)
fix(audit): select PACKAGE through the uninstall selector (#3968)