mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
add skopeo to managed utilities (#1915)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
cc5ca8b28c
commit
e5b341b87a
2 changed files with 17 additions and 2 deletions
17
.binny.yaml
17
.binny.yaml
|
@ -2,7 +2,7 @@ tools:
|
|||
# we want to use a pinned version of binny to manage the toolchain (so binny manages itself!)
|
||||
- name: binny
|
||||
version:
|
||||
want: v0.7.0
|
||||
want: v0.8.0
|
||||
method: github-release
|
||||
with:
|
||||
repo: anchore/binny
|
||||
|
@ -102,3 +102,18 @@ tools:
|
|||
method: github-release
|
||||
with:
|
||||
repo: cli/cli
|
||||
|
||||
# used for integration tests
|
||||
- name: skopeo
|
||||
version:
|
||||
want: v1.12.0
|
||||
method: go-install
|
||||
with:
|
||||
module: github.com/containers/skopeo
|
||||
entrypoint: cmd/skopeo
|
||||
args:
|
||||
- "-tags"
|
||||
- containers_image_openpgp
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
- GO_DYN_FLAGS=""
|
|
@ -49,7 +49,7 @@ func PullThroughImageCache(t testing.TB, imageName string) string {
|
|||
func saveImage(t testing.TB, imageName string, destPath string) {
|
||||
sourceImage := fmt.Sprintf("docker://docker.io/%s", imageName)
|
||||
destinationString := fmt.Sprintf("docker-archive:%s", destPath)
|
||||
skopeoPath := filepath.Join(repoRoot(t), ".tmp", "skopeo")
|
||||
skopeoPath := filepath.Join(repoRoot(t), ".tool", "skopeo")
|
||||
policyPath := filepath.Join(repoRoot(t), "test", "integration", "test-fixtures", "skopeo-policy.json")
|
||||
|
||||
skopeoCommand := []string{
|
||||
|
|
Loading…
Reference in a new issue