teleo-infrastructure/tests/test_gcp_artifact_workflow.py
twentyOne2x c9a2573e86
Some checks are pending
CI / lint-and-test (push) Waiting to run
Harden GCP artifact and readiness receipts
Retains immutable Artifact Registry image digests and makes GCP readiness workflows fail after uploading evidence when readiness checks fail.
2026-07-07 13:24:14 +02:00

11 lines
381 B
Python

from pathlib import Path
def test_gcp_artifact_workflow_retains_immutable_image_digest() -> None:
workflow = Path(".github/workflows/gcp-artifact.yml").read_text()
assert "docker push" in workflow
assert "tee docker-push.log" in workflow
assert "image_digest=" in workflow
assert "image_ref=" in workflow
assert "test -n \"${image_digest}\"" in workflow