Skip to content

ci: publish to crates.io through Trusted Publishing - #20

Merged
BKPepe merged 1 commit into
masterfrom
ci/trusted-publishing
Sep 27, 2026
Merged

BKPepe merged 1 commit into
masterfrom
ci/trusted-publishing

Conversation

@BKPepe

@BKPepe BKPepe commented Sep 27, 2026

Copy link
Copy Markdown
Member

The publish job asks GitHub for an OIDC token and trades it with crates.io for a registry token that lasts 30 minutes, so CARGO_REGISTRY_TOKEN is no longer read and the secret can be deleted.

Needs the trusted publisher configured on the crate first: owner librespeed, repository speedtest-cli-rust, workflow release.yml, environment left empty. The job declares no environment, because one without protection rules would only be a second name to keep in step.

The publish job trades its OIDC identity for a registry token that
lasts 30 minutes, so the CARGO_REGISTRY_TOKEN secret is no longer
read and can be deleted. The job declares no environment: one without
protection rules would only be a second name to keep in step, and
configuring those needs repository admin.
Copilot AI lite review requested due to automatic review settings September 27, 2026 06:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@BKPepe
BKPepe merged commit d744e27 into master Sep 27, 2026
13 checks passed
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