chore: publish IntegraCI build modules dafcf6d0e87d
This commit is contained in:
1 parent
395617ae63
commit
e6bc5d215e
6 files changed
+60
-14
No files matched your search
+19
-6
@@ -221,8 +221,12 @@ func (m *Cosign) Sign(
|
||||
// (keyless) and prints a deprecation notice: pipelines rendered before
|
||||
// 2026-10-18 make exactly that call and must keep working.
|
||||
// - notation: NotaryProject `notation sign` (COSE) using the supplied key.
|
||||
// - gpg: GPG detached-sign of the image manifest.
|
||||
// - in-toto: in-toto CLI attestation (link metadata) over the manifest.
|
||||
// Pushed as an OCI referrer; the platform does NOT verify it (cosign only).
|
||||
// - gpg: GPG detached-sign of the image manifest. NOT published: the
|
||||
// .asc stays in the step's container, so nothing can verify it.
|
||||
// - in-toto: in-toto CLI attestation (link metadata). NOT published either.
|
||||
// gpg and in-toto print attestation.UnpublishedSignatureNotice and still
|
||||
// succeed, so pipelines already rendered with them keep running.
|
||||
// - none: no-op skip (mirrors the adapter's _comment_skip).
|
||||
//
|
||||
// Usage (keyed cosign — the default):
|
||||
@@ -393,10 +397,15 @@ func (m *Cosign) SignMethod(
|
||||
if _, err := c.WithExec([]string{"sh", "-c", script}).Sync(ctx); err != nil {
|
||||
return nil, fmt.Errorf("gpg sign failed: %w", err)
|
||||
}
|
||||
// The .asc stays in the container: say so instead of naming it as if
|
||||
// it could be fetched (attestation.UnpublishedSignatureNotice).
|
||||
notice := attestation.UnpublishedSignatureNotice("gpg")
|
||||
fmt.Fprintln(os.Stderr, notice)
|
||||
return &SignResult{
|
||||
Image: imageRef,
|
||||
Signature: imageRef + " (gpg detached manifest.json.asc)",
|
||||
Signature: imageRef + " (gpg detached signature, not published)",
|
||||
Success: true,
|
||||
Notice: notice,
|
||||
}, nil
|
||||
|
||||
case "in-toto":
|
||||
@@ -415,10 +424,14 @@ func (m *Cosign) SignMethod(
|
||||
if _, err := c.WithExec([]string{"sh", "-c", script}).Sync(ctx); err != nil {
|
||||
return nil, fmt.Errorf("in-toto attestation failed: %w", err)
|
||||
}
|
||||
// The link file stays in the container (attestation.UnpublishedSignatureNotice).
|
||||
notice := attestation.UnpublishedSignatureNotice("in-toto")
|
||||
fmt.Fprintln(os.Stderr, notice)
|
||||
return &SignResult{
|
||||
Image: imageRef,
|
||||
Signature: imageRef + " (in-toto link attestation)",
|
||||
Signature: imageRef + " (in-toto link attestation, not published)",
|
||||
Success: true,
|
||||
Notice: notice,
|
||||
}, nil
|
||||
|
||||
default:
|
||||
@@ -523,8 +536,8 @@ func (m *Cosign) Verify(
|
||||
//
|
||||
// dagger call attest-provenance \
|
||||
// --image ghcr.io/integraci/payments-api:1.2.3@sha256:<64 hex image digest> \
|
||||
// --builder-id https://github.com/integraci/integraci/.github/workflows/release.yml@refs/tags/v1.2.3 \
|
||||
// --source-uri git+https://github.com/integraci/integraci@refs/tags/v1.2.3 \
|
||||
// --builder-id https://github.com/integraci-co/integraci/.github/workflows/release.yml@refs/tags/v1.2.3 \
|
||||
// --source-uri git+https://github.com/integraci-co/integraci@refs/tags/v1.2.3 \
|
||||
// --source-digest "$(git rev-parse HEAD)" \
|
||||
// --build-type https://actions.github.io/buildtypes/workflow/v1 \
|
||||
// --invocation-id ${{ github.run_id }} \
|
||||
|
||||
Reference in new issue
Block a user