Skip to content

Commit

Permalink
refactor: Add SupportedEcosystems method to Provider interface
Browse files Browse the repository at this point in the history
This commit adds the SupportedEcosystems method to the Provider interface in the models package. The method returns a slice of strings representing the supported ecosystems by the provider. This change allows providers to declare the ecosystems they support, which can be used for validation and information display.
  • Loading branch information
djschleen authored Sep 23, 2024
1 parent 4befac8 commit 17e3738
Show file tree
Hide file tree
Showing 18 changed files with 6,557 additions and 278 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"golang.org/x/vuln/cmd/govulncheck@latest",
"honnef.co/go/tools/cmd/staticcheck@latest"
]
}
},
"ghcr.io/dasiths/devcontainer-features/syft:1": {}
},
"customizations": {
"vscode": {
Expand Down
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"--provider=github",
"--debug=true",
"scan",
"./_TESTDATA_/sbom/small.cyclonedx.json"
"./_TESTDATA_/sbom/merged/sbom_specver1.6.json"
]
},
{
Expand All @@ -27,7 +27,7 @@
"--provider=ossindex",
"--debug=true",
"scan",
"./_TESTDATA_/sbom/small.cyclonedx.json"
"./_TESTDATA_/sbom/jena-kafka-1.4.0-SNAPSHOT-bom.json"
]
},
{
Expand All @@ -40,7 +40,7 @@
"--provider=osv",
"--debug=true",
"scan",
"./_TESTDATA_/sbom/small.cyclonedx.json"
"./_TESTDATA_/sbom/jena-kafka-1.4.0-SNAPSHOT-bom.json"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions _TESTDATA_/sbom/bomber.cyclonedx.1.6.json

Large diffs are not rendered by default.

Loading

0 comments on commit 17e3738

Please sign in to comment.