Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/github/go-spdx/v2 v2.7.0
github.com/go-git/go-git/v5 v5.19.2
github.com/google/uuid v1.6.0
github.com/scanoss/scanoss.api-sdk v0.8.0
github.com/scanoss/scanoss.api-sdk v0.26.0
github.com/spdx/tools-golang v0.5.7
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sagikazarmark/locafero v0.11.0 h1:1iurJgmM9G3PA/I+wWYIOw/5SyBtxapeHDcg+AAIFXc=
github.com/sagikazarmark/locafero v0.11.0/go.mod h1:nVIGvgyzw595SUSUE6tvCp3YYTeHs15MvlmU87WwIik=
github.com/scanoss/scanoss.api-sdk v0.7.0 h1:flUEgqghNSbdRG5zfzGoX2CCROZ4ZpbLoSFFRmhPou8=
github.com/scanoss/scanoss.api-sdk v0.7.0/go.mod h1:+NvJCBBPVCd1gMgMfNYEigYG0uxr/GKosF+uaxzLtR4=
github.com/scanoss/scanoss.api-sdk v0.8.0 h1:nVa/NsWpY7Kz59kMCrLAj0Ra5P5PN8Po/KXJDfV1Ans=
github.com/scanoss/scanoss.api-sdk v0.8.0/go.mod h1:+NvJCBBPVCd1gMgMfNYEigYG0uxr/GKosF+uaxzLtR4=
github.com/scanoss/scanoss.api-sdk v0.26.0 h1:KYKX29uXp2fSXI7C8hXGOHLU6xr+484AGewmuVGd/g4=
github.com/scanoss/scanoss.api-sdk v0.26.0/go.mod h1:+NvJCBBPVCd1gMgMfNYEigYG0uxr/GKosF+uaxzLtR4=
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw=
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U=
github.com/spdx/tools-golang v0.5.7 h1:+sWcKGnhwp3vLdMqPcLdA6QK679vd86cK9hQWH3AwCg=
Expand Down
1 change: 1 addition & 0 deletions pkg/sbom/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ type FileEvidence struct {
MatchType string `json:"match_type,omitempty"` // "file" (whole file) | "snippet" | "declared" (from a manifest)
Identified bool `json:"identified,omitempty"` // a bom.identify rule claimed this component for this file
MatchPercentage int `json:"match_percentage,omitempty"` // match confidence (snippet only)
Confidence string `json:"confidence,omitempty"` // attribution reliability grade: LOW, MEDIUM or HIGH
OssFilePath string `json:"oss_file_path,omitempty"` // matched file path inside the OSS component
InputLineRanges []LineRange `json:"input_line_ranges,omitempty"` // matched line ranges in the scanned file (snippet only)
OssLineRanges []LineRange `json:"oss_line_ranges,omitempty"` // matched line ranges in the OSS component (snippet only)
Expand Down
1 change: 1 addition & 0 deletions pkg/sbom/scansource/scansource.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ func filesByURLHash(files []scanossapi.FileResult, identified func(path, urlHash
FileHash: f.FileHash,
MatchType: string(f.MatchType),
MatchPercentage: m.MatchPercentage,
Confidence: string(m.Confidence),
OssFilePath: m.OssFilePath,
InputLineRanges: lineRanges(m.InputLineRanges),
OssLineRanges: lineRanges(m.OssLineRanges),
Expand Down
Loading