feat(echo-osv): add provider for Echo OSV language advisories#1174
Open
orizerah wants to merge 3 commits into
Open
feat(echo-osv): add provider for Echo OSV language advisories#1174orizerah wants to merge 3 commits into
orizerah wants to merge 3 commits into
Conversation
Adds a new "echo-osv" provider that ingests the Echo OSV feed (https://advisory.echohq.com/osv/all.zip), filtering to language ecosystems (currently Echo:PyPi and Echo:npm) so that OS-level "Echo" entries continue to be handled by the existing "echo" provider. Records are emitted under the OSV 1.7.5 schema, which is the earliest version that both supports the `upstream` field used for CVE/GHSA cross-references and accepts the "ECHO-" id prefix (registered upstream at osv-schema v1.7.4). The OSV 1.7.5 validation schema is also added to schema/vulnerability/osv/. Signed-off-by: Ori Zerah <ori.zerah@echohq.com>
Signed-off-by: Ori Zerah <ori.zerah@echohq.com>
Set database_specific.anchore.record_type = "advisory" on every record so grype-db's OSV transformer (anchore/grype#3252) routes the affected ranges into UnaffectedPackageHandle rather than the affected store. Echo ships patched builds of upstream PyPI/npm packages; treating those ranges as "X is vulnerable" would false-positive every non-Echo consumer. Also merge OSV 1.7 `upstream` into `aliases` (deduped) so cross-source CVE/GHSA bridging works at scan time -- the transformer reads aliases but not upstream, and without that bridge grype can't link an ECHO-* unaffected record to a GHSA/NVD match on the same package. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: Ori Zerah <ori.zerah@echohq.com>
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.
Adds an
echo-osvprovider for Echo's OSV feed (https://advisory.echohq.com/osv/all.zip), separate from the existingecho(OS) provider so OS-level and language-ecosystem advisories are handled by their respective schemas.Pinned to
OSVSchema("1.7.5")because the feed uses theupstreamfield (added in OSV 1.7.0) and theECHO-id prefix (registered upstream in v1.7.4). Addsschema/vulnerability/osv/schema-1.7.5.jsonaccordingly. Only the language ecosystems (Echo:PyPi,Echo:npm) are kept; OS-levelEchoentries continue to flow through the existingechoprovider.Test plan
make unit,make check-types,make test(py3.13 + py3.14) all pass.