ci: fix cosign signing (install fallback, env-style login, portal sign step) #44

Merged
sharang merged 2 commits from ci/cosign-fixes into main 2026-07-22 07:46:33 +00:00
Owner

Fixes three cosign/CI bugs from the Harbor cutover: (1) cosign install used curl, absent in the docker:cli build containers -> 'curl: not found', now curl-or-wget and fully ::warning::-guarded so it can never fail a build; (2) [certifai + compliance-scanner-agent] docker login interpolated the robot username inline — sh expands the '$' in robot$ci-push to 'robot-push' -> unauthorized (this also hard-failed the Deploy Docs job); creds now flow via env. COSIGN_KEY/COSIGN_PASSWORD env was also missing (the injector skipped workflows that already had a top-level env block); (3) [portal] the sign step was never injected (portal uses docker/build-push-action, not a raw docker push) — added it, so portal images finally get signed.

Fixes three cosign/CI bugs from the Harbor cutover: (1) cosign install used curl, absent in the docker:cli build containers -> 'curl: not found', now curl-or-wget and fully ::warning::-guarded so it can never fail a build; (2) [certifai + compliance-scanner-agent] docker login interpolated the robot username inline — sh expands the '$' in robot$ci-push to 'robot-push' -> unauthorized (this also hard-failed the Deploy Docs job); creds now flow via env. COSIGN_KEY/COSIGN_PASSWORD env was also missing (the injector skipped workflows that already had a top-level env block); (3) [portal] the sign step was never injected (portal uses docker/build-push-action, not a raw docker push) — added it, so portal images finally get signed.
sharang added 1 commit 2026-07-22 07:44:01 +00:00
ci: fix cosign install (curl->wget fallback), env-style registry login, portal sign step
CI / Format (push) Canceled after 0s
CI / Clippy (push) Canceled after 0s
CI / Security Audit (push) Canceled after 0s
CI / Tests (push) Canceled after 0s
CI / E2E Tests (push) Canceled after 0s
CI / Format (pull_request) Canceled after 0s
CI / Clippy (pull_request) Canceled after 0s
CI / Tests (pull_request) Canceled after 0s
CI / Deploy (push) Canceled after 0s
CI / Security Audit (pull_request) Canceled after 0s
CI / Deploy (pull_request) Canceled after 0s
CI / E2E Tests (pull_request) Canceled after 0s
75feed2417
sharang added 1 commit 2026-07-22 07:45:29 +00:00
ci: certifai login via env vars too (two-line variant)
CI / Tests (push) Skipped
CI / E2E Tests (push) Skipped
CI / Deploy (push) Skipped
CI / Format (pull_request) Successful in 3s
CI / Tests (pull_request) Skipped
CI / E2E Tests (pull_request) Skipped
CI / Deploy (pull_request) Skipped
CI / Format (push) Successful in 4s
CI / Clippy (push) Successful in 2m10s
CI / Security Audit (push) Skipped
CI / Clippy (pull_request) Successful in 2m8s
CI / Security Audit (pull_request) Skipped
a2bc551ef9
sharang merged commit 406d5ec2f1 into main 2026-07-22 07:46:33 +00:00
sharang deleted branch ci/cosign-fixes 2026-07-22 07:46:33 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/certifai#44