ci: fresh-install post-release trigger via workflow_run (drop PAT dispatch)#199
Merged
Conversation
…patch) The dispatch step added on the 0.0.83 train never worked: it borrowed XIM_PKGINDEX_TOKEN, whose fine-grained resource owner is the index org and therefore cannot cover this repository (HTTP 403 on every release, hidden by the non-blocking fallback). Replace it with the mechanism that needs no token at all: ci-fresh-install now declares `workflow_run: [release]` — a platform-generated event exempt from GITHUB_TOKEN trigger suppression — with a success guard on every job. `release: published` stays for manually created releases; workflow_dispatch and the daily schedule are unchanged.
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.
Replaces the PAT-based dispatch step added on the 0.0.83 train (commit 1db0816), which never worked:
XIM_PKGINDEX_TOKENis a fine-grained PAT whose resource owner is the index org — it structurally cannot cover this repository, so every release loggedHTTP 403behind the non-blocking fallback.Replacement:
ci-fresh-install.ymlgainsworkflow_run: [release] / completed— a platform-generated event exempt from GITHUB_TOKEN trigger suppression, requiring no cross-repo PAT and no secret maintenance. Every job carriesif: event != workflow_run || run.conclusion == successso only successful releases trigger verification.release: publishedis kept for manually created releases;workflow_dispatchand the daily schedule are unchanged. The dead dispatch step in release.yml is removed with a pointer comment.Verification note: the
workflow_runpath can only fire for real on the next release; this PR is validated by YAML/workflow static checks + the unchanged dispatch path (manually exercised throughout 0.0.83/0.0.84).