Repository navigation
ci: automate crates.io and Homebrew publishing without stored tokens - #23
Merged
Merged
Conversation
… a deploy key Both channels were bumped by hand every release: CRATES_IO_TOKEN was never set and HOMEBREW_TAP_TOKEN had expired, while both jobs reported success. - crates: OIDC token exchange (rust-lang/crates-io-auth-action), no stored token; skips when the version is already published; manual runs rehearse with --dry-run - homebrew: SSH deploy key scoped to borghei/homebrew-tap; failures are no longer swallowed; an up-to-date formula still proves the key can push
Owner
Author
|
Rehearsed from this branch: the Homebrew workflow cloned the tap with the deploy key and found the formula current (run 36878682974). The crates job exchanged its OIDC token for a crates.io token and completed |
Merged
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crates.io and the Homebrew tap were bumped by hand on every release.
CRATES_IO_TOKENwas never set andHOMEBREW_TAP_TOKENhad expired, while both jobs reported success.release.ymlin this repo forink-md, and the job exchanges its OIDC token for a short-lived publish token. No stored secret. The job skips when the version is already published, and a manual run only rehearses withcargo publish --dry-run.borghei/homebrew-taponly (HOMEBREW_TAP_DEPLOY_KEY). Failures are no longer swallowed. When the formula is already current, the job still does a dry-run push to prove the key works.Testing
Both paths are exercised from this branch by manual dispatch before merging; results in the PR comments.
🤖 Generated with Claude Code
https://claude.ai/code/session_01UVcvmQrSXd2eyt32g4ko19