GeezerVison is showing github.com — ci(release-plz): fire cargo-dist Releases via a GitHub App token by unclesp1d3r · Pull Request #411 · EvilBit-Labs/libmagic-rs
Conversation
unclesp1d3r
commented
Jul 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
GitHub Releases (and the signed rmagic artifacts docs/src/release-verification.md points users to) stopped being produced after v0.1.1. Nine tagged versions — v0.6.0 through v0.11.1 — have git tags but no GitHub Release.
Root cause: the pipeline is wired correctly in intent — release-plz.toml has git_release_enable = false / git_tag_enable = true, delegating the GitHub Release to cargo-dist's release.yml (on: push: tags). But release-plz pushes the tag using the default GITHUB_TOKEN, and GitHub does not emit workflow-trigger events for refs pushed with GITHUB_TOKEN (its recursion guard). So the tag push never triggers release.yml.
Proof: every historical Release workflow run is pull_request-triggered — there has never been a tag-triggered run.
Fix
Mint a GitHub App token in the release-plz-release job and use it for:
- the checkout credential (the token the tag push authenticates with), and
- release-plz's
GITHUB_TOKEN env.
A tag pushed with an App token does trigger downstream workflows, reconnecting the handoff to cargo-dist.
The release-plz-pr job is intentionally left on GITHUB_TOKEN so its bot author — and the .mergify.yml author-matching auto-merge exemption — is unchanged.
The create-github-app-token action is SHA-pinned (v3.2.0) to satisfy Scorecard.
Required before this works (maintainer action)
- Register a GitHub App (or reuse an org bot app) with repo permissions Contents: write + Pull requests: write; install it on this repo.
- Add two repository secrets:
RELEASE_PLZ_APP_ID
RELEASE_PLZ_APP_PRIVATE_KEY
Notes / follow-ups
- Signed tags: AGENTS.md mandates GPG-signed tags. This PR does not change signing; since the existing tags pushed fine, tag creation isn't the broken part. Worth confirming release-plz is actually signing.
- Backfill: v0.6.0–v0.11.1 will not retroactively get Releases. Optional to backfill by re-pushing each tag (with the App token) or a local
dist build + gh release create. Otherwise it just works from the next release forward.
Test plan
-
actionlint clean, YAML valid
- Add the two secrets
- Cut the next release (or re-push a test tag) and confirm the
Release workflow runs on the tag and creates a GitHub Release with artifacts
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ist fires
release-plz creates and pushes the version tag using the default
GITHUB_TOKEN. GitHub does not emit push/create workflow events for
refs pushed with GITHUB_TOKEN (recursion guard), so release.yml
(on: push: tags) never runs and no GitHub Release / rmagic artifacts
are produced. Tags v0.6.0-v0.11.1 exist but were never consumed.
Mint a GitHub App token in the release-plz-release job and use it for
both the checkout credential (tag push) and release-plz's GITHUB_TOKEN,
so the pushed tag triggers cargo-dist. The release-plz-pr job is left
on GITHUB_TOKEN so its bot author (and the Mergify author-matching
exemption) is unchanged.
Requires two new secrets: RELEASE_PLZ_APP_ID and
RELEASE_PLZ_APP_PRIVATE_KEY.
Signed-off-by: UncleSp1d3r <[email protected]>
coderabbitai
Bot
commented
Jul 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Walkthrough
The release workflow now mints a GitHub App token, uses it for persistent checkout credentials, and passes it to the release-plz release action.
Changes
Release token flow
| Layer / File(s) |
Summary |
Mint and apply GitHub App token .github/workflows/release-plz.yml |
Generates a GitHub App token, configures checkout to persist it, and supplies it to the release-plz-release job. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Suggested reviewers: copilot
Poem
A token is minted, credentials stay,
Tags can now travel the workflow way.
Release-plz receives the app’s bright key,
Rusty automation flows safely and free.
🚥 Pre-merge checks | ✅ 8 | ❌ 2
❌ Failed checks (2 warnings)
| Check name |
Status |
Explanation |
Resolution |
| Test-Coverage-Check |
⚠️ Warning |
Only workflow linting exists; there are no tests covering the new App-token release path, failure modes, or boundary cases. |
Add regression coverage for the release workflow—at least a test that validates the App-token checkout/env wiring and secret/misconfig handling. |
| Title check |
⚠️ Warning |
The title uses Conventional Commits formatting, but the scope release-plz is not one of the allowed scopes. |
Rename the title to use an allowed scope or update the scope list to include release-plz. |
✅ Passed checks (8 passed)
| Check name |
Status |
Explanation |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Memory-Safety-Check |
✅ Passed |
PR only changes workflow/version metadata; no Rust source files changed and no new unsafe/raw-pointer/transmute usage appears in the diff. |
| Libmagic-Compatibility-Check |
✅ Passed |
Only .github/workflows/release-plz.yml is affected; no libmagic parser, magic-file format, or output code changed. |
| Performance-Regression-Check |
✅ Passed |
Only version/changelog metadata changed; no parser, evaluator, or I/O code paths were modified, so no hot-path regression is introduced. |
| Error-Handling-Check |
✅ Passed |
PR changes only .github/workflows/release-plz.yml; no Rust library code or public APIs were modified. |
| Description check |
✅ Passed |
The description clearly matches the workflow change and explains the GitHub App token fix. |
✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
Warning
Review ran into problems
🔥 Problems
These MCP integrations need to be re-authenticated in the Integrations settings: Linear, Notion
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
mergify
Bot
commented
Jul 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Merge Protections
🔴 1 of 4 protections blocking
|
Protection |
Waiting on |
| 🔴 |
🚦 Auto-queue |
— |
| 🟢 |
Enforce conventional commit |
— |
| 🟢 |
Full CI must pass |
— |
| 🟢 |
Do not merge outdated PRs |
— |
🔴 🚦 Auto-queue
This rule is failing.
When all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
- any of:
- all of:
-
author = dosubot[bot]
-
base = main
-
label != do-not-merge
- all of:
-
author = dependabot[bot]
-
base = main
-
label != do-not-merge
- all of:
-
author = release-plz[bot]
-
head ~= ^release-plz-
-
base = main
-
label != do-not-merge
Show 3 satisfied protections
🟢 Enforce conventional commit
Require conventional commit format per https://www.conventionalcommits.org/en/v1.0.0/. Skipped for bots.
-
title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?!?:
🟢 Full CI must pass
All CI checks must pass. Release-plz PRs are exempt because they only bump versions and changelogs (code was already tested on main), and GITHUB_TOKEN-triggered force-pushes suppress CI.
-
check-success = coverage
-
check-success = quality
-
check-success = test
-
check-success = test-cross-platform (macos-latest, macOS)
-
check-success = test-cross-platform (ubuntu-22.04, Linux)
-
check-success = test-cross-platform (ubuntu-latest, Linux)
-
check-success = test-cross-platform (windows-latest, Windows)
🟢 Do not merge outdated PRs
Make sure PRs are within 10 commits of the base branch before merging
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Ready to approve
The workflow change is narrowly scoped to authentication for tag pushes and aligns with GitHub’s event recursion guard behavior without introducing risky logic changes.
Pull request overview
This PR restores the intended handoff between release-plz (tag creation) and cargo-dist (GitHub Release creation) by ensuring the tag push is authenticated with a GitHub App token, which will emit push: tags workflow events and therefore trigger .github/workflows/release.yml.
Changes:
- Generate a GitHub App installation token in the
release-plz-release job.
- Use the App token for both
actions/checkout credentials (so git push --tags triggers downstream workflows) and for release-plz’s GITHUB_TOKEN environment.
File summaries
| File |
Description |
| .github/workflows/release-plz.yml |
Mints and uses a GitHub App token in the release job so tag pushes trigger cargo-dist’s tag-based release workflow. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Low
Note Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Ready to approve
The workflow update is narrowly scoped and correctly switches the tag-pushing credentials to a GitHub App token to restore tag-triggered releases.
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0 new
- Review effort level: Low
Note Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warning CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.
Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.
👉 Steps to fix this
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release-plz.yml:
- Around line 22-25: Update the create-github-app-token step to use the
preferred client-id input instead of app-id, and explicitly scope the token to
permission-contents: write. Add permission-pull-requests: write only if the
release-plz job requires pull-request access; otherwise omit it.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: c1a9cc7b-744c-410c-b6f7-7cfecd10cffd
📥 Commits
Reviewing files that changed from the base of the PR and between f782f1e and 123b33f.
📒 Files selected for processing (1)
.github/workflows/release-plz.yml
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
✅ All modified and coverable lines are covered by tests.
📢 Thoughts on this report? Let us know!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Tick the box to add this pull request to the merge queue (same as @mergifyio queue).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Labels
github_actions
Pull requests that update GitHub Actions code
size:XS
This PR changes 0-9 lines, ignoring generated files.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|