Skip to content

Commit e3469c5

Browse files
authored
Bump github.com/sigstore/cosign/v2 from 2.5.3 to 2.6.0 (#1441)
* Bump github.com/sigstore/cosign/v2 from 2.5.3 to 2.6.0 Proposing to bump the cosign version to include new library calls to push attestations with the referrer's API. - [Release notes](https://github.com/sigstore/cosign/releases/tag/v2.6.0) - [Changelog](https://github.com/sigstore/cosign/blob/6431af15a8066c4b33c7232fc2dba3f9278a16a5/CHANGELOG.md) - [Commits](sigstore/cosign@v2.5.3...v2.6.0) The new changes desired are sigstore/cosign/pull/4357 which should better support the work in #1409. Signed-off-by: arewm <[email protected]> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * Fix LoadPrivateKey API breaking change for cosign v2.6.0 - Add LoadOption parameter to LoadPrivateKey calls in x509.go and clients.go - Pass nil for defaultLoadOptions to use sensible defaults (ED25519ph) - Update both production code and test code to match new API The LoadPrivateKey function signature changed in cosign v2.6.0 to include a third parameter for LoadOption configuration. Passing nil uses the default ED25519ph behavior which is appropriate for this use case. Co-authored-by: Claude Sonnet <[email protected]> Signed-off-by: arewm <[email protected]> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent d767227 commit e3469c5

File tree

1,504 files changed

+110528
-48936
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,504 files changed

+110528
-48936
lines changed

go.mod

Lines changed: 96 additions & 87 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 203 additions & 220 deletions
Large diffs are not rendered by default.

pkg/chains/signing/x509/x509.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func cosignSigner(ctx context.Context, secretPath string, privateKey []byte) (*S
202202
if err != nil {
203203
return nil, errors.Wrap(err, "reading cosign.password file")
204204
}
205-
signer, err := cosign.LoadPrivateKey(privateKey, password)
205+
signer, err := cosign.LoadPrivateKey(privateKey, password, nil)
206206
if err != nil {
207207
return nil, err
208208
}

test/clients.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func setupSecret(ctx context.Context, t *testing.T, c kubernetes.Interface, opts
237237
}
238238
s.StringData[p] = string(b)
239239
}
240-
cosignPriv, err := cosign.LoadPrivateKey([]byte(s.StringData["cosign.key"]), []byte(s.StringData["cosign.password"]))
240+
cosignPriv, err := cosign.LoadPrivateKey([]byte(s.StringData["cosign.key"]), []byte(s.StringData["cosign.password"]), nil)
241241
if err != nil {
242242
t.Fatal(err)
243243
}

vendor/cloud.google.com/go/spanner/CHANGES.md

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/cloud.google.com/go/spanner/admin/database/apiv1/database_admin_client.go

Lines changed: 123 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)