Skip to content

Commit

Permalink
fix: add missing validation for Wolfi (#282)
Browse files Browse the repository at this point in the history
Also correct case on Chainguard ecosystem in linter

Signed-off-by: Andrew Pollock <[email protected]>
  • Loading branch information
andrewpollock authored Sep 13, 2024
1 parent 65a0d18 commit 752f489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/osv-linter/internal/pkgchecker/ecosystems.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func ExistsInEcosystem(pkg string, ecosystem string) bool {
return true
case "Bitnami":
return true
case "ChainGuard":
case "Chainguard":
return true
case "CRAN":
return true
Expand Down Expand Up @@ -92,7 +92,7 @@ func VersionsExistInEcosystem(pkg string, versions []string, ecosystem string) e
return nil
case "Bitnami":
return nil
case "ChainGuard":
case "Chainguard":
return nil
case "CRAN":
return nil
Expand Down
2 changes: 1 addition & 1 deletion validation/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
"type": "string",
"title": "Currently supported ecosystems",
"description": "These ecosystems are also documented at https://ossf.github.io/osv-schema/#affectedpackage-field",
"pattern": "^(AlmaLinux|Alpine|Android|Bioconductor|Bitnami|Chainguard|ConanCenter|CRAN|crates.io|Debian|GHC|GitHub Actions|GIT|Go|Hackage|Hex|Linux|Maven|npm|NuGet|openSUSE|OSS-Fuzz|Packagist|Photon OS|Pub|PyPI|Red Hat|Rocky Linux|RubyGems|SUSE|SwiftURL|Ubuntu)(:[[:digit:]]+)?"
"pattern": "^(AlmaLinux|Alpine|Android|Bioconductor|Bitnami|Chainguard|ConanCenter|CRAN|crates.io|Debian|GHC|GitHub Actions|GIT|Go|Hackage|Hex|Linux|Maven|npm|NuGet|openSUSE|OSS-Fuzz|Packagist|Photon OS|Pub|PyPI|Red Hat|Rocky Linux|RubyGems|SUSE|SwiftURL|Ubuntu|Wolfi)(:[[:digit:]]+)?"
},
"prefix": {
"type": "string",
Expand Down

0 comments on commit 752f489

Please sign in to comment.