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)
| 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. |
| 442 | func 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 |
| 447 | func createAndPushAttestationInternal(ctx context.Context, imageName, keyName string, patches *godog.Table, useV1 bool) (context.Context, error) { |
nothing calls this directly
no test coverage detected