-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sbom): Fixes for Programming Language Vulnerabilities and SBOM Pa…
…ckage Maintainer Details (#7871)
- Loading branch information
1 parent
45d3b40
commit 461a68a
Showing
9 changed files
with
563 additions
and
113 deletions.
There are no files selected for viewing
527 changes: 421 additions & 106 deletions
527
integration/testdata/fluentd-multiple-lockfiles.cdx.json.golden
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
pkg/detector/library/testdata/fixtures/go-custom-data.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- bucket: "go::GitHub Security Advisory Go" | ||
pairs: | ||
- bucket: github.com/docker/docker | ||
pairs: | ||
- key: "GHSA-v23v-6jw2-98fq" | ||
value: | ||
PatchedVersions: | ||
- "23.0.15" | ||
- "26.1.5" | ||
- "27.1.1" | ||
- "25.0.6" | ||
VulnerableVersions: | ||
- ">=19.03.0, <23.0.15" | ||
- ">=26.0.0, <26.1.5" | ||
- ">=27.0.0, <27.1.1" | ||
- ">=24.0.0, <25.0.6" | ||
Custom: | ||
Severity: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,6 +183,78 @@ func TestConvertFromRpcPkgs(t *testing.T) { | |
}, | ||
}, | ||
}, | ||
{ | ||
args: args{ | ||
rpcPkgs: []*common.Package{ | ||
{ | ||
Name: "binary", | ||
Version: "4.2+dfsg", | ||
Release: "0.1+deb7u4", | ||
Epoch: 0, | ||
Arch: "amd64", | ||
SrcName: "bash", | ||
SrcVersion: "4.2+dfsg", | ||
SrcRelease: "0.1+deb7u4", | ||
SrcEpoch: 0, | ||
Licenses: []string{"GPL-3.0"}, | ||
Locations: []*common.Location{ | ||
{ | ||
StartLine: 10, | ||
EndLine: 20, | ||
}, | ||
{ | ||
StartLine: 22, | ||
EndLine: 32, | ||
}, | ||
}, | ||
Layer: &common.Layer{ | ||
Digest: "sha256:8d42b73fc1ddc2e9e66c954966f144665825e69f4ed10c66342ae7c26b38d4e4", | ||
DiffId: "sha256:745d171eb8c3d69f788da3a1b053056231ad140b80be71d6869229846a1f3a77", | ||
}, | ||
Digest: "SHA1:901a7b55410321c4d35543506cff2a8613ef5aa2", | ||
Indirect: false, | ||
Identifier: &common.PkgIdentifier{ | ||
Uid: "63f8bef824b960e3", | ||
}, | ||
Maintainer: "[email protected]", | ||
}, | ||
}, | ||
}, | ||
want: []ftypes.Package{ | ||
{ | ||
Name: "binary", | ||
Version: "4.2+dfsg", | ||
Release: "0.1+deb7u4", | ||
Epoch: 0, | ||
Arch: "amd64", | ||
SrcName: "bash", | ||
SrcVersion: "4.2+dfsg", | ||
SrcRelease: "0.1+deb7u4", | ||
SrcEpoch: 0, | ||
Licenses: []string{"GPL-3.0"}, | ||
Locations: []ftypes.Location{ | ||
{ | ||
StartLine: 10, | ||
EndLine: 20, | ||
}, | ||
{ | ||
StartLine: 22, | ||
EndLine: 32, | ||
}, | ||
}, | ||
Layer: ftypes.Layer{ | ||
Digest: "sha256:8d42b73fc1ddc2e9e66c954966f144665825e69f4ed10c66342ae7c26b38d4e4", | ||
DiffID: "sha256:745d171eb8c3d69f788da3a1b053056231ad140b80be71d6869229846a1f3a77", | ||
}, | ||
Digest: "SHA1:901a7b55410321c4d35543506cff2a8613ef5aa2", | ||
Indirect: false, | ||
Identifier: ftypes.PkgIdentifier{ | ||
UID: "63f8bef824b960e3", | ||
}, | ||
Maintainer: "[email protected]", | ||
}, | ||
}, | ||
}, | ||
} | ||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters