chore: update github.com/sigstore/cosign/v3 from 3.0.2 to 3.0.4 (#3789)

Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>
This commit is contained in:
Andrei Aaron
2026-02-11 00:16:50 +02:00
committed by GitHub
parent c3c50a2261
commit 3454ad63dc
8 changed files with 81 additions and 75 deletions
+4 -2
View File
@@ -260,7 +260,8 @@ func RunSignatureUploadAndVerificationTests(t *testing.T, cacheDriverParams map[
So(resp.StatusCode(), ShouldEqual, http.StatusOK)
// sign the image
err = sign.SignCmd(&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
err = sign.SignCmd(context.TODO(),
&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
options.KeyOpts{KeyRef: path.Join(keyDir, "cosign.key"), PassFunc: generate.GetPass},
options.SignOptions{
Registry: options.RegistryOptions{AllowInsecure: true},
@@ -672,7 +673,8 @@ func RunSignatureUploadAndVerificationTests(t *testing.T, cacheDriverParams map[
So(resp.StatusCode(), ShouldEqual, http.StatusOK)
// sign the image
err = sign.SignCmd(&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
err = sign.SignCmd(context.TODO(),
&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
options.KeyOpts{KeyRef: path.Join(keyDir, "cosign.key"), PassFunc: generate.GetPass},
options.SignOptions{
Registry: options.RegistryOptions{AllowInsecure: true},
@@ -264,7 +264,8 @@ func TestVerifySignatures(t *testing.T) {
_ = os.Chdir(cwd)
// sign the image
err = sign.SignCmd(&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
err = sign.SignCmd(context.TODO(),
&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
options.KeyOpts{KeyRef: path.Join(cosignDir, "cosign.key"), PassFunc: generate.GetPass},
options.SignOptions{
Registry: options.RegistryOptions{AllowInsecure: true},
@@ -1268,7 +1269,8 @@ func RunVerificationTests(t *testing.T, dbDriverParams map[string]any) { //nolin
_ = os.Chdir(cwd)
// sign the image
err = sign.SignCmd(&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
err = sign.SignCmd(context.TODO(),
&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
options.KeyOpts{KeyRef: path.Join(keyDir, "cosign.key"), PassFunc: generate.GetPass},
options.SignOptions{
Registry: options.RegistryOptions{AllowInsecure: true},
+2 -1
View File
@@ -7543,7 +7543,8 @@ func attachSBOM(tdir, port, repoName string, digest godigest.Digest) {
func signImage(tdir, port, repoName string, digest godigest.Digest) {
// push signatures to upstream server so that we can sync them later
// sign the image
err := sign.SignCmd(&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
err := sign.SignCmd(context.TODO(),
&options.RootOptions{Verbose: true, Timeout: 1 * time.Minute},
options.KeyOpts{KeyRef: path.Join(tdir, "cosign.key"), PassFunc: generate.GetPass},
options.SignOptions{
Registry: options.RegistryOptions{AllowInsecure: true},