Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/consumer-pin-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,4 @@ jobs:
name: consumer-pin-${{ strategy.job-index }}
path: .verification/consumer-pin-*.json
if-no-files-found: error
include-hidden-files: true
15 changes: 15 additions & 0 deletions tests/test_workflow_dispatch_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,18 @@ def test_consumer_pin_verification_exposes_typed_release_inputs() -> None:
assert inputs["ovk_candidate_sha"]["required"] == "true"
assert inputs["fastapi_ref"]["default"] == "main"
assert inputs["express_ref"]["default"] == "main"


def test_consumer_pin_verification_uploads_hidden_evidence() -> None:
"""Evidence written under `.verification` must not be silently omitted from artifacts."""

path = WORKFLOW_DIR / "consumer-pin-verification.yml"
workflow = _load_workflow(path)
steps = workflow["jobs"]["verify-consumer-pins"]["steps"]
upload_steps = [step for step in steps if step.get("name") == "Upload consumer pin evidence"]

assert len(upload_steps) == 1
upload = upload_steps[0]
assert upload["with"]["path"].startswith(".verification/")
assert upload["with"]["if-no-files-found"] == "error"
assert upload["with"]["include-hidden-files"] == "true"
Loading