fix(deps): update common, image, and storage deps

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-07-02 03:28:11 +00:00
committed by GitHub
parent 5d48c0b299
commit 5391721aa3
7 changed files with 23 additions and 19 deletions

View File

@@ -81,6 +81,8 @@ type RekorHashedrekordV001SchemaDataHash struct {
const (
RekorHashedrekordV001SchemaDataHashAlgorithmSha256 string = "sha256"
RekorHashedrekordV001SchemaDataHashAlgorithmSha384 string = "sha384"
RekorHashedrekordV001SchemaDataHashAlgorithmSha512 string = "sha512"
)
type RekorHashedrekordV001SchemaSignature struct {

View File

@@ -14,6 +14,7 @@ import (
"github.com/containers/image/v5/signature/internal"
signerInternal "github.com/containers/image/v5/signature/sigstore/internal"
"github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/go-retryablehttp"
"github.com/sirupsen/logrus"
)
@@ -44,6 +45,7 @@ type rekorClient struct {
// newRekorClient creates a rekorClient for rekorURL.
func newRekorClient(rekorURL *url.URL) *rekorClient {
retryableClient := retryablehttp.NewClient()
retryableClient.HTTPClient = cleanhttp.DefaultClient()
retryableClient.RetryMax = defaultRetryCount
retryableClient.Logger = leveledLoggerForLogrus(logrus.StandardLogger())
basePath := rekorURL.Path
@@ -127,7 +129,7 @@ func stringPointer(s string) *string {
// uploadKeyOrCert integrates this code into sigstore/internal.Signer.
// Given components of the created signature, it returns a SET that should be added to the signature.
func (r *rekorClient) uploadKeyOrCert(ctx context.Context, keyOrCertBytes []byte, signatureBytes []byte, payloadBytes []byte) ([]byte, error) {
payloadHash := sha256.Sum256(payloadBytes) // HashedRecord only accepts SHA-256
payloadHash := sha256.Sum256(payloadBytes) // Consistent with cosign.
hashedRekordSpec, err := json.Marshal(internal.RekorHashedrekordV001Schema{
Data: &internal.RekorHashedrekordV001SchemaData{
Hash: &internal.RekorHashedrekordV001SchemaDataHash{