fix(cd): attestation not-ready regex — cosign 3.x says 'no matching attestations:' (no 'found')
CI (SIAX Cloud) / integration (push) Has been skipped
masterplan-lock / check (pull_request) Successful in 5s
masterplan-lock / check (push) Successful in 9s
CI (SIAX Cloud) / security (pull_request) Successful in 15s
CI (SIAX Cloud) / security (push) Successful in 20s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 23s
CI (SIAX Cloud) / integration (pull_request) Successful in 27s
Security Scan (SIAX Cloud) / security (push) Successful in 33s
CI (SIAX Cloud) / quality (pull_request) Successful in 40s
CI (SIAX Cloud) / quality (push) Successful in 51s
CI (SIAX Cloud) / integration (push) Has been skipped
masterplan-lock / check (pull_request) Successful in 5s
masterplan-lock / check (push) Successful in 9s
CI (SIAX Cloud) / security (pull_request) Successful in 15s
CI (SIAX Cloud) / security (push) Successful in 20s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 23s
CI (SIAX Cloud) / integration (pull_request) Successful in 27s
Security Scan (SIAX Cloud) / security (push) Successful in 33s
CI (SIAX Cloud) / quality (pull_request) Successful in 40s
CI (SIAX Cloud) / quality (push) Successful in 51s
Measured live 2026-09-22: release.yml's G17 attest finished 03:37:18, but cd.yml's poll loop hit the digest at 03:37:02 (image pushed before the attestation upload completed) and cosign 3.1.3 failed with 'Error: no matching attestations: ' — the gate's retry regex required the trailing 'found', so a transient not-ready state was misread as a hard verify failure. Broaden the regex to accept both message forms; the fail-closed behaviour for REAL attest failures is unchanged.
This commit is contained in:
@@ -168,7 +168,7 @@ jobs:
|
||||
if cosign verify-attestation --key cosign.pub --type "$PREDICATE_TYPE" "${IMAGE_REPO}@${digest}" >/tmp/verify.log 2>&1; then
|
||||
break
|
||||
fi
|
||||
if grep -qE "no matching (attestations|signatures) found" /tmp/verify.log; then
|
||||
if grep -qE "no matching (attestations|signatures)( found)?" /tmp/verify.log; then
|
||||
echo "image present but attestation not attached yet (attempt $attempt/$max_attempts) — waiting for release.yml's cosign attest..."
|
||||
sleep 15
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user