Skip to content

fix: add release token preflight#61

Merged
bkataru merged 1 commit into
mainfrom
fix/release-token-preflight
Jun 14, 2026
Merged

fix: add release token preflight#61
bkataru merged 1 commit into
mainfrom
fix/release-token-preflight

Conversation

@bkataru

@bkataru bkataru commented Jun 14, 2026

Copy link
Copy Markdown
Member

Summary

  • add a Release workflow preflight job that fails immediately when CARGO_REGISTRY_TOKEN is empty
  • make platform artifact builds depend on the preflight so missing publish credentials do not waste build minutes before failing
  • document the release hardening in Unreleased

Verification

  • python3 -c 'from pathlib import Path; import yaml; data=yaml.safe_load(Path(".github/workflows/release.yml").read_text()); assert "preflight" in data["jobs"]; assert data["jobs"]["build"]["needs"] == "preflight"; print("release preflight yaml ok")'
  • executed the preflight shell block with CARGO_REGISTRY_TOKEN removed and confirmed it exits 1 with the intended GitHub Actions error

Linear: DIR1-96

@bkataru bkataru merged commit 764974f into main Jun 14, 2026
4 checks passed
@bkataru bkataru deleted the fix/release-token-preflight branch June 14, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant