Skip to content

Commit 094e5ca

Browse files
authored
Add FreeBSD to OSVF-Schema (#448)
Add FreeBSD to OSVF-Schema with name FreeBSD and prefix FREEBSD. As FreeBSD OSV vulnerability database is not yet released this it bit WIP. FreeBSD PURL PR is also in the works: [purl-spec#496](package-url/purl-spec#496) Ecosystem schema's will be like: - `FreeBSD:base` For FreeBSD base system issues - `FreeBSD:kernel` For FreeBSD kernel issues - `FreeBSD:ports` For FreeBSD ports issues Signed-off-by: Tuukka Pasanen <[email protected]>
1 parent c19eef1 commit 094e5ca

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Together, these include vulnerabilities from:
4444
- Debian GNU/Linux
4545
- Echo
4646
- Erlang Ecosystem Foundation
47+
- FreeBSD
4748
- GitHub Actions
4849
- Go
4950
- Haskell

bindings/go/osvconstants/constants.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/schema.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ The defined ecosystems are:
868868
| `crates.io` | The crates.io ecosystem for Rust; the `name` field is a crate name. |
869869
| `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. For versions without a numeric version, use the the string in the `series` column of the `distro-info-data` CSV, e.g. "Debian:sid". |
870870
| `Echo` | The Echo package ecosystem; the `name` is the name of the source package. |
871+
| `FreeBSD` | The FreeBSD ecosystem consists of three main components: the base system, kernel, and ports. For ports, the `name` refers to the name of a package managed by `pkg(8)`, which is the FreeBSD package manager. Ecosystem strings can include `:ports`, indicating that an issue pertains to ports (e.g., 'FreeBSD:ports'). Base system issues should be categorized under `:base`. The `ranges[].events` versions correspond to specific FreeBSD releases, such as 'FreeBSD:base:14.3'. Kernel-related issues are denoted by `:kernel`, with examples like 'FreeBSD:kernel'. Every namespace can have optional `:<RELEASE>` segment at last, which can be used to specify that an issue applies only to a particular FreeBSD release like. |
871872
| `GHC` | The Haskell compiler ecosystem. The `name` field is the name of a component of the GHC compiler ecosystem (e.g., compiler, GHCI, RTS). |
872873
| `GitHub Actions` | The GitHub Actions ecosystem; the `name` field is the action's repository name with owner e.g. `{owner}/{repo}`. |
873874
| `Go` | The Go ecosystem; the `name` field is a Go module path. |

ecosystems.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"crates.io": "The crates.io ecosystem for Rust; the `name` field is a crate name.",
1414
"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. For versions without a numeric version, use the the string in the `series` column of the `distro-info-data` CSV, e.g. \"Debian:sid\".",
1515
"Echo": "The Echo package ecosystem; the `name` is the name of the source package.",
16+
"FreeBSD": "The FreeBSD ecosystem consists of three main components: the base system, kernel, and ports. For ports, the `name` refers to the name of a package managed by `pkg(8)`, which is the FreeBSD package manager. Ecosystem strings can include `:ports`, indicating that an issue pertains to ports (e.g., 'FreeBSD:ports'). Base system issues should be categorized under `:base`. The `ranges[].events` versions correspond to specific FreeBSD releases, such as 'FreeBSD:base:14.3'. Kernel-related issues are denoted by `:kernel`, with examples like 'FreeBSD:kernel'. Every namespace can have optional `:<RELEASE>` segment at last, which can be used to specify that an issue applies only to a particular FreeBSD release like.",
1617
"GHC": "The Haskell compiler ecosystem. The `name` field is the name of a component of the GHC compiler ecosystem (e.g., compiler, GHCI, RTS).",
1718
"GitHub Actions": "The GitHub Actions ecosystem; the `name` field is the action's repository name with owner e.g. `{owner}/{repo}`.",
1819
"Go": "The Go ecosystem; the `name` field is a Go module path.",

tools/osv-linter/internal/checks/schema_generated.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@
343343
"crates.io",
344344
"Debian",
345345
"Echo",
346+
"FreeBSD",
346347
"GHC",
347348
"GitHub Actions",
348349
"Go",
@@ -381,13 +382,13 @@
381382
"type": "string",
382383
"title": "Currently supported ecosystems",
383384
"description": "These ecosystems are also documented at https://ossf.github.io/osv-schema/#affectedpackage-field",
384-
"pattern": "^(AlmaLinux|Alpaquita|Alpine|Android|BellSoft Hardened Containers|Bioconductor|Bitnami|Chainguard|CleanStart|ConanCenter|CRAN|crates\\.io|Debian|Echo|GHC|GitHub Actions|Go|Hackage|Hex|Julia|Kubernetes|Linux|Mageia|Maven|MinimOS|npm|NuGet|openEuler|openSUSE|OSS-Fuzz|Packagist|Photon OS|Pub|PyPI|Red Hat|Rocky Linux|RubyGems|SUSE|SwiftURL|Ubuntu|VSCode|Wolfi|GIT)(:.+)?$"
385+
"pattern": "^(AlmaLinux|Alpaquita|Alpine|Android|BellSoft Hardened Containers|Bioconductor|Bitnami|Chainguard|CleanStart|ConanCenter|CRAN|crates\\.io|Debian|Echo|FreeBSD|GHC|GitHub Actions|Go|Hackage|Hex|Julia|Kubernetes|Linux|Mageia|Maven|MinimOS|npm|NuGet|openEuler|openSUSE|OSS-Fuzz|Packagist|Photon OS|Pub|PyPI|Red Hat|Rocky Linux|RubyGems|SUSE|SwiftURL|Ubuntu|VSCode|Wolfi|GIT)(:.+)?$"
385386
},
386387
"prefix": {
387388
"type": "string",
388389
"title": "Currently supported home database identifier prefixes",
389390
"description": "These home databases are also documented at https://ossf.github.io/osv-schema/#id-modified-fields",
390-
"pattern": "^(ASB-A|PUB-A|ALPINE|ALSA|ALBA|ALEA|BELL|BIT|CGA|CURL|CVE|DEBIAN|DRUPAL|DSA|DLA|ELA|DTSA|ECHO|EEF|GHSA|GO|GSD|HSEC|JLSEC|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)-"
391+
"pattern": "^(ASB-A|PUB-A|ALPINE|ALSA|ALBA|ALEA|BELL|BIT|CGA|CURL|CVE|DEBIAN|DRUPAL|DSA|DLA|ELA|DTSA|ECHO|EEF|FreeBSD|GHSA|GO|GSD|HSEC|JLSEC|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)-"
391392
},
392393
"severity": {
393394
"type": [

validation/schema.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@
343343
"crates.io",
344344
"Debian",
345345
"Echo",
346+
"FreeBSD",
346347
"GHC",
347348
"GitHub Actions",
348349
"Go",
@@ -381,13 +382,13 @@
381382
"type": "string",
382383
"title": "Currently supported ecosystems",
383384
"description": "These ecosystems are also documented at https://ossf.github.io/osv-schema/#affectedpackage-field",
384-
"pattern": "^(AlmaLinux|Alpaquita|Alpine|Android|BellSoft Hardened Containers|Bioconductor|Bitnami|Chainguard|CleanStart|ConanCenter|CRAN|crates\\.io|Debian|Echo|GHC|GitHub Actions|Go|Hackage|Hex|Julia|Kubernetes|Linux|Mageia|Maven|MinimOS|npm|NuGet|openEuler|openSUSE|OSS-Fuzz|Packagist|Photon OS|Pub|PyPI|Red Hat|Rocky Linux|RubyGems|SUSE|SwiftURL|Ubuntu|VSCode|Wolfi|GIT)(:.+)?$"
385+
"pattern": "^(AlmaLinux|Alpaquita|Alpine|Android|BellSoft Hardened Containers|Bioconductor|Bitnami|Chainguard|CleanStart|ConanCenter|CRAN|crates\\.io|Debian|Echo|FreeBSD|GHC|GitHub Actions|Go|Hackage|Hex|Julia|Kubernetes|Linux|Mageia|Maven|MinimOS|npm|NuGet|openEuler|openSUSE|OSS-Fuzz|Packagist|Photon OS|Pub|PyPI|Red Hat|Rocky Linux|RubyGems|SUSE|SwiftURL|Ubuntu|VSCode|Wolfi|GIT)(:.+)?$"
385386
},
386387
"prefix": {
387388
"type": "string",
388389
"title": "Currently supported home database identifier prefixes",
389390
"description": "These home databases are also documented at https://ossf.github.io/osv-schema/#id-modified-fields",
390-
"pattern": "^(ASB-A|PUB-A|ALPINE|ALSA|ALBA|ALEA|BELL|BIT|CGA|CURL|CVE|DEBIAN|DRUPAL|DSA|DLA|ELA|DTSA|ECHO|EEF|GHSA|GO|GSD|HSEC|JLSEC|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)-"
391+
"pattern": "^(ASB-A|PUB-A|ALPINE|ALSA|ALBA|ALEA|BELL|BIT|CGA|CURL|CVE|DEBIAN|DRUPAL|DSA|DLA|ELA|DTSA|ECHO|EEF|FreeBSD|GHSA|GO|GSD|HSEC|JLSEC|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)-"
391392
},
392393
"severity": {
393394
"type": [

0 commit comments

Comments
 (0)