Skip to content

chore(ci): gate releases on CI via reusable workflow instead of workflow_run - #307

Merged
toolCHAINZ merged 1 commit into
mainfrom
chore/release-plz-trigger
Nov 20, 2026
Merged

toolCHAINZ merged 1 commit into
mainfrom
chore/release-plz-trigger

Conversation

@toolCHAINZ

Copy link
Copy Markdown
Owner

Problem

The last Release-plz run failed at the crates.io auth step:

Trusted Publishing does not support the workflow_run event trigger due to security concerns. Please use a different trigger such as push, release, or workflow_dispatch.

#305 switched release-plz.yml to workflow_run (after CI) so releases were gated on CI, which crates.io trusted publishing rejects.

Fix

  • release-plz.yml triggers on push to main again, calls ci.yml as a reusable workflow (ci job), and both release jobs needs: ci.
  • ci.yml drops its push: main trigger and adds workflow_call, so CI doesn't run twice on main. PR / workflow_dispatch triggers and the CI ok required check are unchanged.

Note: CI results for main commits now appear inside the "Release-plz" run rather than a standalone "CI" run.

🤖 Generated with Claude Code

…low_run

crates.io trusted publishing rejects OIDC tokens from workflow_run-triggered
runs. Trigger release-plz on push to main and call CI as a reusable workflow,
with the release jobs depending on it.
@toolCHAINZ
toolCHAINZ enabled auto-merge (squash) November 20, 2026 16:58
@toolCHAINZ
toolCHAINZ merged commit bbf3d5d into main Nov 20, 2026
6 checks passed
@toolCHAINZ
toolCHAINZ deleted the chore/release-plz-trigger branch November 20, 2026 17:01
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