MCPcopy Create free account
hub / github.com/conforma/cli / createAndPushAttestationWithPatches

Function createAndPushAttestationWithPatches

acceptance/image/image.go:442–444  ·  view source on GitHub ↗

createAndPushAttestation for a named image in the Context creates an attestation image, same as `cosign attest` or Tekton Chains would, and pushes it to the stub registry as a new tag for that image akin to how cosign and Tekton Chains do it; this variant applies additional JSON Patch patches to the

(ctx context.Context, imageName, keyName string, patches *godog.Table)

Source from the content-addressed store, hash-verified

440// statement as required by the tests. This implementation now includes transparency
441// log upload to generate bundle information like Tekton Chains does for attestations.
442func createAndPushAttestationWithPatches(ctx context.Context, imageName, keyName string, patches *godog.Table) (context.Context, error) {
443 return createAndPushAttestationInternal(ctx, imageName, keyName, patches, false)
444}
445
446// createAndPushAttestationInternal is the internal implementation that supports both SLSA v0.2 and v1
447func createAndPushAttestationInternal(ctx context.Context, imageName, keyName string, patches *godog.Table, useV1 bool) (context.Context, error) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected