forked from aquasecurity/trivy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(report): GitHub Dependency Snapshots support (aquasecurity#1522)
Co-authored-by: Shira Cohen <[email protected]> Co-authored-by: knqyf263 <[email protected]>
- Loading branch information
1 parent
b7ec642
commit 4ab696e
Showing
15 changed files
with
565 additions
and
28 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"detector": { | ||
"name": "trivy", | ||
"version": "dev", | ||
"url": "https://github.com/aquasecurity/trivy" | ||
}, | ||
"ref": "/ref/feature-1", | ||
"sha": "39da54a1ff04120a31df8cbc94ce9ede251d21a3", | ||
"job": { | ||
"correlator": "workflow-name_integration", | ||
"id": "1910764383" | ||
}, | ||
"scanned": "2020-08-10T07:28:17Z", | ||
"manifests": { | ||
"testdata/fixtures/images/alpine-310.tar.gz (alpine 3.10.2)": { | ||
"name": "alpine", | ||
"resolved": { | ||
"alpine-baselayout": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"alpine-keys": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"apk-tools": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"busybox": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"ca-certificates-cacert": { | ||
"package_url": "pkg:apk/ca-certificates-cacert@20190108-r0", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"libc-utils": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"libcrypto1.1": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"libssl1.1": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"libtls-standalone": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"musl": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"musl-utils": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"scanelf": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"ssl_client": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
}, | ||
"zlib": { | ||
"package_url": "pkg:apk/[email protected]", | ||
"relationship": "direct", | ||
"scope": "runtime" | ||
} | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
package clock | ||
|
||
import ( | ||
"testing" | ||
"time" | ||
|
||
"k8s.io/utils/clock" | ||
clocktesting "k8s.io/utils/clock/testing" | ||
) | ||
|
||
var c clock.Clock = clock.RealClock{} | ||
|
||
// SetFakeTime sets a fake time for testing. | ||
func SetFakeTime(t *testing.T, fakeTime time.Time) { | ||
c = clocktesting.NewFakeClock(fakeTime) | ||
t.Cleanup(func() { | ||
c = clock.RealClock{} | ||
}) | ||
} | ||
|
||
func Now() time.Time { | ||
return c.Now() | ||
} |
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
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
Oops, something went wrong.