Skip to content

Cosign copy command requires "--only" since 2.4.2 #4048

@MPritsch

Description

@MPritsch

Description

Since Version 2.4.2 there is an error when using the "cosign copy" command:

Error: invalid value for --only: , only following values are supported, map[att:{} sbom:{} sig:{}]

To reproduce. Not that we first checked the functionality with version 2.4.1:

docker run --rm -it  --entrypoint sh cgr.dev/chainguard/wolfi-base                                                                                                                     
/ # apk update
fetch https://packages.wolfi.dev/os/aarch64/APKINDEX.tar.gz
 [https://packages.wolfi.dev/os]
OK: 124859 distinct packages available

/ # apk add cosign=2.4.1-r0
(1/1) Installing cosign (2.4.1-r0)
Executing busybox-1.37.0-r0.trigger
OK: 83 MiB in 16 packages

/ # cosign copy -f alpine ttl.sh/asdofjweofjwef
Copying index.docker.io/library/alpine@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099 to ttl.sh/asdofjweofjwef:sha256-56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099...
...

/ # apk add cosign=2.4.2-r0
(1/1) Upgrading cosign (2.4.1-r0 -> 2.4.2-r0)
Executing busybox-1.37.0-r0.trigger
OK: 98 MiB in 16 packages

/ # cosign copy -f alpine ttl.sh/asdofjweofjwef
Error: invalid value for --only: , only following values are supported, map[att:{} sbom:{} sig:{}]
error during command execution: invalid value for --only: , only following values are supported, map[att:{} sbom:{} sig:{}]

Version

2.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions