Skip to content

ci: preview crates.io bootstrap plan before approval - #1000

Open
Xuanwo wants to merge 1 commit into
mainfrom
xuanwo/review-crate-publish-set
Open

Xuanwo wants to merge 1 commit into
mainfrom
xuanwo/review-crate-publish-set

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 23, 2026

Copy link
Copy Markdown
Member

Previously, bootstrap_rust_crates.yml had only a single job bound to the rust-bootstrap environment, so reviewers had to approve the deployment gate without seeing which crates would receive irreversible 0.0.0 placeholder publishes.

This change adds an unprivileged plan job before the protected bootstrap job:

  • plan validates the main dispatch ref/commit and runs bootstrap.py discover, writing a grouped Markdown summary to GITHUB_STEP_SUMMARY (new crates to publish as 0.0.0, existing 0.0.0 placeholders to reconcile/verify, and established crates audited only, plus a warning if any established crate lacks trustpub_only).
  • bootstrap depends on plan and waits on the rust-bootstrap environment approval. After approval, it still checks out the same github.sha and runs the full authenticated audit before any write, then appends the applied results to GITHUB_STEP_SUMMARY.
  • plan runs read-only against public crates.io metadata without credentials so it cannot leak secrets or bypass the approval gate; because crates.io state could change while waiting for review, bootstrap does not trust outputs from plan and re-audits from scratch.

Split bootstrap_rust_crates.yml into an unprivileged plan job and the protected rust-bootstrap job so reviewers can inspect the exact crate list in the workflow run summary before approving irreversible 0.0.0 placeholder publishes.

This branch has not been deployed

No deployments
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.

2 participants