Add support for fetching SBOMs (#2869)

Fixes: #2864.
This commit is contained in:
vandan rohatgi authored and GitHub committed 2023-08-16 13:27:49 -04:00
1 parent 1a4b1067cc
commit 0c562f6a6c
6 files changed
+435

No files matched your search

+10
View File
@@ -1763,6 +1763,16 @@ func TestRepositoryRelease_String(t *testing.T) {
}
}
func TestSBOM_String(t *testing.T) {
v := SBOM{
SBOM: &SBOMInfo{},
}
want := `github.SBOM{SBOM:github.SBOMInfo{}}`
if got := v.String(); got != want {
t.Errorf("SBOM.String = %v, want %v", got, want)
}
}
func TestSSHSigningKey_String(t *testing.T) {
v := SSHSigningKey{
ID: Int64(0),