-
Notifications
You must be signed in to change notification settings - Fork 99
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
base: main
Are you sure you want to change the base?
Add Echo Ecosystem #394
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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/<ID>.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> | ||
|
@@ -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. | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you copy this file to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (actually now they should just run |
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", | ||
|
@@ -21,10 +21,7 @@ | |
"$ref": "#/$defs/timestamp" | ||
}, | ||
"aliases": { | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"type": ["array", "null"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please undo formatting changes. |
||
"items": { | ||
"type": "string" | ||
} | ||
|
@@ -51,10 +48,7 @@ | |
"$ref": "#/$defs/severity" | ||
}, | ||
"affected": { | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"type": ["array", "null"], | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
|
@@ -71,10 +65,7 @@ | |
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"ecosystem", | ||
"name" | ||
] | ||
"required": ["ecosystem", "name"] | ||
}, | ||
"severity": { | ||
"$ref": "#/$defs/severity" | ||
|
@@ -86,11 +77,7 @@ | |
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"GIT", | ||
"SEMVER", | ||
"ECOSYSTEM" | ||
] | ||
"enum": ["GIT", "SEMVER", "ECOSYSTEM"] | ||
}, | ||
"repo": { | ||
"type": "string" | ||
|
@@ -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", | ||
|
@@ -113,9 +98,7 @@ | |
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"introduced" | ||
] | ||
"required": ["introduced"] | ||
}, | ||
{ | ||
"type": "object", | ||
|
@@ -124,9 +107,7 @@ | |
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"fixed" | ||
] | ||
"required": ["fixed"] | ||
}, | ||
{ | ||
"type": "object", | ||
|
@@ -135,9 +116,7 @@ | |
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"last_affected" | ||
] | ||
"required": ["last_affected"] | ||
}, | ||
{ | ||
"type": "object", | ||
|
@@ -146,9 +125,7 @@ | |
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"limit" | ||
] | ||
"required": ["limit"] | ||
} | ||
] | ||
}, | ||
|
@@ -169,9 +146,7 @@ | |
} | ||
}, | ||
"then": { | ||
"required": [ | ||
"repo" | ||
] | ||
"required": ["repo"] | ||
} | ||
}, | ||
{ | ||
|
@@ -180,9 +155,7 @@ | |
"properties": { | ||
"events": { | ||
"contains": { | ||
"required": [ | ||
"last_affected" | ||
] | ||
"required": ["last_affected"] | ||
} | ||
} | ||
} | ||
|
@@ -192,20 +165,15 @@ | |
"properties": { | ||
"events": { | ||
"contains": { | ||
"required": [ | ||
"fixed" | ||
] | ||
"required": ["fixed"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"required": [ | ||
"type", | ||
"events" | ||
] | ||
"required": ["type", "events"] | ||
} | ||
}, | ||
"versions": { | ||
|
@@ -224,10 +192,7 @@ | |
} | ||
}, | ||
"references": { | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"type": ["array", "null"], | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
|
@@ -252,10 +217,7 @@ | |
"format": "uri" | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"url" | ||
] | ||
"required": ["type", "url"] | ||
} | ||
}, | ||
"credits": { | ||
|
@@ -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": { | ||
|
@@ -341,6 +296,7 @@ | |
"CRAN", | ||
"crates.io", | ||
"Debian", | ||
"Echo", | ||
"GHC", | ||
"GitHub Actions", | ||
"Go", | ||
|
@@ -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", | ||
|
@@ -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" | ||
|
@@ -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": { | ||
|
There was a problem hiding this comment.
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