Introduce a unified Policy config that covers advisories, abandoned, and malware#12804
Merged
Conversation
381997b to
0071bfc
Compare
970b769 to
74e9362
Compare
This was referenced Apr 17, 2026
9c7d1f6 to
ac72255
Compare
API Surface ChangesIf any of the additions below are not intended as public API, mark them with Modified API SurfaceProperties
|
e502860 to
d0dae2c
Compare
…or policy to config
d0dae2c to
2259c45
Compare
Seldaek
reviewed
May 4, 2026
Seldaek
reviewed
May 4, 2026
Seldaek
reviewed
May 4, 2026
Seldaek
reviewed
May 4, 2026
Seldaek
reviewed
May 4, 2026
Seldaek
reviewed
May 4, 2026
2ceac19 to
0ea02d0
Compare
Seldaek
reviewed
May 5, 2026
…kage-name reasons
… not matching the expected format
…and alias for --no-blocking instead of the other way around
Member
|
Thanks! |
This was referenced May 6, 2026
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.
Introducing a new
policyconfig that covers what is currently known asauditandfilterwhile keeping support for the existingauditconfig.Changes in this PR
ignoreworks across advisories, abandoned and malwareignore-unreachablecan now be configured separately for audit|update|installdefault-listsas part of the Composer repository schemaunfiltered-packagesas part of the repository configPending items that will be added via follow up PR
ignore-sourcefor the malware list FilterList: add ignore-source for malware list #12807The new config format
Take a look at the changes to the composer-schema.json to see all possible values.
{ "config": { "policy": { "advisories": { "block": true, "audit": "fail", "ignore": { "vendor/package": "all advisories for this package ignored" }, "ignore-id": { "CVE-2024-1234": "not reachable in our app", "GHSA-xxxx-yyyy": {"on-block": false, "reason": "mitigated by WAF"} }, "ignore-severity": { "low": "we accept low-severity risk" } }, "malware": { "block": true, "block-scope": "all", "audit": "fail", "ignore": { "vendor/false-positive": "verified safe, flagged by mistake" }, "ignore-source": ["untrusted-repo-name"] }, "abandoned": { "block": false, "audit": "fail", "ignore": { "vendor/old-pkg": "replacement not ready yet", "vendor/legacy-*": {"on-audit": false, "reason": "allow install but keep reporting"}, "vendor/pinned": {"constraint": "^2.0", "reason": "only v2 still in use"} } }, "company-policy": { "sources": [ {"type": "url", "url": "https://example.com/policy-filter.json"}, {"type": "url", "url": "https://security-team.example.com/extra-rules.json"} ], "block": true, "audit": "fail", "ignore": { "vendor/internal-fork": "maintained internally" } }, "ignore-unreachable": ["install", "update"] } } }