Skip to content

Commit

Permalink
Recursively sign multi-arch image [CLOUDDST-24102]
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyzheng committed Oct 9, 2024
1 parent e01d4b1 commit c22b7f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pubtools/sign/signers/cosignsigner.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def container_sign(self: CosignSigner, operation: ContainerSignOperation) -> Sig
"--rekor-url",
self.rekor_url,
"--tlog-upload=%s" % ("true" if self.upload_tlog else "false"),
"-r",
]
if self.registry_user:
common_args += ["--registry-username", self.registry_user]
Expand Down
5 changes: 5 additions & 0 deletions tests/test_cosign_signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def f_expected_cosign_sign_args():
"--rekor-url",
"https://rekor.sigstore.dev",
"--tlog-upload=true",
"-r",
"--registry-username",
"some-user",
"--registry-password",
Expand Down Expand Up @@ -122,6 +123,7 @@ def f_expected_cosign_sign_identity_args():
"--rekor-url",
"https://rekor.sigstore.dev",
"--tlog-upload=true",
"-r",
"--registry-username",
"some-user",
"--registry-password",
Expand Down Expand Up @@ -367,6 +369,7 @@ def test_container_sign_alias(f_config_cosign_signer_aliases, f_environ):
"--rekor-url",
"https://rekor.sigstore.dev",
"--tlog-upload=true",
"-r",
"-a",
"tag=tag",
"some-registry/namespace/repo@sha256:abcdefg",
Expand Down Expand Up @@ -461,6 +464,7 @@ def test_container_sign_digests_only(
"--rekor-url",
"https://rekor.sigstore.dev",
"--tlog-upload=true",
"-r",
"--registry-username",
"some-user",
"--registry-password",
Expand Down Expand Up @@ -520,6 +524,7 @@ def test_container_sign_digests_only_indentity(
"--rekor-url",
"https://rekor.sigstore.dev",
"--tlog-upload=true",
"-r",
"--registry-username",
"some-user",
"--registry-password",
Expand Down

0 comments on commit c22b7f4

Please sign in to comment.