Skip to content

fix(ci): use PAT for release-plz so tag push triggers downstream workflows#54

Merged
skgbafa merged 1 commit into
mainfrom
fix/release-plz-pat
Apr 27, 2026
Merged

fix(ci): use PAT for release-plz so tag push triggers downstream workflows#54
skgbafa merged 1 commit into
mainfrom
fix/release-plz-pat

Conversation

@skgbafa
Copy link
Copy Markdown
Contributor

@skgbafa skgbafa commented Apr 27, 2026

Why

GitHub does not let workflows triggered by GITHUB_TOKEN create new workflow runs (loop prevention). When release-plz pushed v1.3.0 with the default token, neither release.yml (binaries) nor docker.yml (Phala deploy) fired.

Switching to a fine-grained PAT (RELEASE_PLZ_TOKEN with contents: write + pull-requests: write) bypasses this restriction.

Changes

  • Both jobs in release-plz.yml now use RELEASE_PLZ_TOKEN:
    • actions/checkout@v4 uses the PAT for git auth
    • The release-plz action uses the PAT as GITHUB_TOKEN
  • CARGO_REGISTRY_TOKEN reference unchanged

After merging

The next release-plz tag push will trigger release.yml and docker.yml normally.

The existing v1.3.0 tag/release was created with GITHUB_TOKEN so downstream workflows didn't fire. To recover: delete the v1.3.0 tag + release, then re-run release-plz workflow manually. The team lead will handle this separately.

@skgbafa skgbafa merged commit 21a5cde into main Apr 27, 2026
15 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.

1 participant