Skip to content

Add Echo Ecosystem #394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This format is currently exported by:
- [Bitnami Vulnerability Database](https://github.com/bitnami/vulndb)
- [Chainguard](https://packages.cgr.dev/chainguard/osv/all.json)
- [Curl](https://curl.se/docs/vuln.json)
- [Echo](https://advisory.echohq.com/osv/all.json)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Echo to the list below this as well

- [GitHub Security Advisories](https://github.com/github/advisory-database)
- [Global Security Database](https://github.com/cloudsecurityalliance/gsd-database)
- [Go Vulnerability Database](https://github.com/golang/vulndb)
Expand Down
1 change: 1 addition & 0 deletions bindings/go/osvschema/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const (
EcosystemCRAN Ecosystem = "CRAN"
EcosystemCratesIO Ecosystem = "crates.io"
EcosystemDebian Ecosystem = "Debian"
EcosystemEcho Ecosystem = "Echo"
EcosystemGHC Ecosystem = "GHC"
EcosystemGitHubActions Ecosystem = "GitHub Actions"
EcosystemGo Ecosystem = "Go"
Expand Down
12 changes: 12 additions & 0 deletions docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,17 @@ The defined database prefixes and their "home" databases are:
</ul>
</td>
</tr>
<tr>
<td><code>ECHO</code></td>
<td><a href="https://advisory.echohq.com/osv/all.json">Echo Security Advisory Database</a></td>
<td>
<ul>
<li>How to contribute: TBD</li>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these be filled out? See https://github.com/ossf/osv-schema/pull/358/files as a recent example.

<li>Source URL: TBD</li>
<li>OSV Formatted URL: <code>https://advisory.echohq.com/osv/&lt;ID&gt;.json</code></li>
</ul>
</td>
</tr>
<tr>
<td><code>ELA</code></td>
<td><a href="https://www.freexian.com/lts/extended/">Debian Extended LTS Security Advisories (provided by Freexian)</a></td>
Expand Down Expand Up @@ -789,6 +800,7 @@ The defined ecosystems are:
| `CRAN` | The R package ecosystem. The `name` is an R package name. |
| `crates.io` | The crates.io ecosystem for Rust; the `name` field is a crate name. |
| `Debian` | The Debian package ecosystem; the `name` is the name of the source package. The ecosystem string might optionally have a `:<RELEASE>` suffix to scope the package to a particular Debian release. `<RELEASE>` is a numeric version specified in the [Debian distro-info-data](https://debian.pages.debian.net/distro-info-data/debian.csv). For example, the ecosystem string "Debian:7" refers to the Debian 7 (wheezy) release. |
| `Echo` | The Echo package ecosystem; the `name` is the name of the source package. |
| `GHC` | The Haskell compiler ecosystem. The `name` field is the name of a component of the GHC compiler ecosystem (e.g., compiler, GHCI, RTS). |
| `GitHub Actions` | The GitHub Actions ecosystem; the `name` field is the action's repository name with owner e.g. `{owner}/{repo}`. |
| `Go` | The Go ecosystem; the `name` field is a Go module path. |
Expand Down
1 change: 1 addition & 0 deletions ecosystems.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"CRAN": "The R package ecosystem. The `name` is an R package name.",
"crates.io": "The crates.io ecosystem for Rust; the `name` field is a crate name.",
"Debian": "The Debian package ecosystem; the `name` is the name of the source package. The ecosystem string might optionally have a `:<RELEASE>` suffix to scope the package to a particular Debian release. `<RELEASE>` is a numeric version specified in the [Debian distro-info-data](https://debian.pages.debian.net/distro-info-data/debian.csv). For example, the ecosystem string \"Debian:7\" refers to the Debian 7 (wheezy) release.",
"Echo": "The Echo package ecosystem; the `name` is the name of the source package.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double checking, does Echo have different releases? Or just a single continuous rolling release?

"GHC": "The Haskell compiler ecosystem. The `name` field is the name of a component of the GHC compiler ecosystem (e.g., compiler, GHCI, RTS).",
"GitHub Actions": "The GitHub Actions ecosystem; the `name` field is the action's repository name with owner e.g. `{owner}/{repo}`.",
"Go": "The Go ecosystem; the `name` field is a Go module path.",
Expand Down
109 changes: 24 additions & 85 deletions validation/schema.json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you copy this file to tools/osv-linter/internal/checks/schema_generated.json as well to fix the osv-linter failing test.

Copy link
Contributor

@G-Rath G-Rath Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(actually now they should just run scripts/update-ecosystems-list.py, as that updates both the schema files)

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ossf/osv-schema/main/validation/schema.json",
Expand All @@ -21,10 +21,7 @@
"$ref": "#/$defs/timestamp"
},
"aliases": {
"type": [
"array",
"null"
],
"type": ["array", "null"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo formatting changes.

"items": {
"type": "string"
}
Expand All @@ -51,10 +48,7 @@
"$ref": "#/$defs/severity"
},
"affected": {
"type": [
"array",
"null"
],
"type": ["array", "null"],
"items": {
"type": "object",
"properties": {
Expand All @@ -71,10 +65,7 @@
"type": "string"
}
},
"required": [
"ecosystem",
"name"
]
"required": ["ecosystem", "name"]
},
"severity": {
"$ref": "#/$defs/severity"
Expand All @@ -86,11 +77,7 @@
"properties": {
"type": {
"type": "string",
"enum": [
"GIT",
"SEMVER",
"ECOSYSTEM"
]
"enum": ["GIT", "SEMVER", "ECOSYSTEM"]
},
"repo": {
"type": "string"
Expand All @@ -99,9 +86,7 @@
"title": "events must contain an introduced object and may contain fixed, last_affected or limit objects",
"type": "array",
"contains": {
"required": [
"introduced"
]
"required": ["introduced"]
},
"items": {
"type": "object",
Expand All @@ -113,9 +98,7 @@
"type": "string"
}
},
"required": [
"introduced"
]
"required": ["introduced"]
},
{
"type": "object",
Expand All @@ -124,9 +107,7 @@
"type": "string"
}
},
"required": [
"fixed"
]
"required": ["fixed"]
},
{
"type": "object",
Expand All @@ -135,9 +116,7 @@
"type": "string"
}
},
"required": [
"last_affected"
]
"required": ["last_affected"]
},
{
"type": "object",
Expand All @@ -146,9 +125,7 @@
"type": "string"
}
},
"required": [
"limit"
]
"required": ["limit"]
}
]
},
Expand All @@ -169,9 +146,7 @@
}
},
"then": {
"required": [
"repo"
]
"required": ["repo"]
}
},
{
Expand All @@ -180,9 +155,7 @@
"properties": {
"events": {
"contains": {
"required": [
"last_affected"
]
"required": ["last_affected"]
}
}
}
Expand All @@ -192,20 +165,15 @@
"properties": {
"events": {
"contains": {
"required": [
"fixed"
]
"required": ["fixed"]
}
}
}
}
}
}
],
"required": [
"type",
"events"
]
"required": ["type", "events"]
}
},
"versions": {
Expand All @@ -224,10 +192,7 @@
}
},
"references": {
"type": [
"array",
"null"
],
"type": ["array", "null"],
"items": {
"type": "object",
"properties": {
Expand All @@ -252,10 +217,7 @@
"format": "uri"
}
},
"required": [
"type",
"url"
]
"required": ["type", "url"]
}
},
"credits": {
Expand Down Expand Up @@ -288,25 +250,18 @@
]
}
},
"required": [
"name"
]
"required": ["name"]
}
},
"database_specific": {
"type": "object"
}
},
"required": [
"id",
"modified"
],
"required": ["id", "modified"],
"allOf": [
{
"if": {
"required": [
"severity"
]
"required": ["severity"]
},
"then": {
"properties": {
Expand Down Expand Up @@ -341,6 +296,7 @@
"CRAN",
"crates.io",
"Debian",
"Echo",
"GHC",
"GitHub Actions",
"Go",
Expand Down Expand Up @@ -377,7 +333,7 @@
"type": "string",
"title": "Currently supported ecosystems",
"description": "These ecosystems are also documented at https://ossf.github.io/osv-schema/#affectedpackage-field",
"pattern": "^(AlmaLinux|Alpaquita|Alpine|Android|BellSoft Hardened Containers|Bioconductor|Bitnami|Chainguard|ConanCenter|CRAN|crates\\.io|Debian|GHC|GitHub Actions|Go|Hackage|Hex|Kubernetes|Linux|Mageia|Maven|MinimOS|npm|NuGet|openEuler|openSUSE|OSS-Fuzz|Packagist|Photon OS|Pub|PyPI|Red Hat|Rocky Linux|RubyGems|SUSE|SwiftURL|Ubuntu|Wolfi|GIT)(:.+)?$"
"pattern": "^(AlmaLinux|Alpaquita|Alpine|Android|BellSoft Hardened Containers|Bioconductor|Bitnami|Chainguard|ConanCenter|CRAN|crates\\.io|Debian|Echo|GHC|GitHub Actions|Go|Hackage|Hex|Kubernetes|Linux|Mageia|Maven|MinimOS|npm|NuGet|openEuler|openSUSE|OSS-Fuzz|Packagist|Photon OS|Pub|PyPI|Red Hat|Rocky Linux|RubyGems|SUSE|SwiftURL|Ubuntu|Wolfi|GIT)(:.+)?$"
},
"prefix": {
"type": "string",
Expand All @@ -386,21 +342,13 @@
"pattern": "^(ASB-A|PUB-A|ALSA|ALBA|ALEA|BELL|BIT|CGA|CURL|CVE|DSA|DLA|ELA|DTSA|GHSA|GO|GSD|HSEC|KUBE|LBSEC|LSN|MAL|MINI|MGASA|OESA|OSV|openSUSE-SU|PHSA|PSF|PYSEC|RHBA|RHEA|RHSA|RLSA|RXSA|RSEC|RUSTSEC|SUSE-[SRFO]U|UBUNTU|USN|V8)-"
},
"severity": {
"type": [
"array",
"null"
],
"type": ["array", "null"],
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"CVSS_V2",
"CVSS_V3",
"CVSS_V4",
"Ubuntu"
]
"enum": ["CVSS_V2", "CVSS_V3", "CVSS_V4", "Ubuntu"]
},
"score": {
"type": "string"
Expand Down Expand Up @@ -466,22 +414,13 @@
"then": {
"properties": {
"score": {
"enum": [
"negligible",
"low",
"medium",
"high",
"critical"
]
"enum": ["negligible", "low", "medium", "high", "critical"]
}
}
}
}
],
"required": [
"type",
"score"
]
"required": ["type", "score"]
}
},
"timestamp": {
Expand Down
Loading