Repository navigation
ci(docs-dispatch): authenticate as the dispatchbot GitHub App - #11
Merged
Merged
Conversation
The DOCS_DISPATCH_TOKEN PAT is retired. Each dispatch now mints a short-lived installation token from the DISPATCHBOT_APP_ID / DISPATCHBOT_PRIVATE_KEY org secrets, scoped to its one target repo, gated on the same condition as the dispatch it feeds. Change detection is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The token was hardcoded to the default composer repo, so a target-repo variable override would dispatch with a token that cannot reach it. A resolve step now derives owner and repo from the same target the dispatch uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
Switches
.github/workflows/docs-dispatch.ymlfrom the retiredDOCS_DISPATCH_TOKENPAT to the makegov-dispatchbot GitHub App.actions/create-github-app-token@v3step mints an installation token from theDISPATCHBOT_APP_ID/DISPATCHBOT_PRIVATE_KEYorg secrets, scoped to the one repo the dispatch hits, and runs under the same condition as the dispatch step.DOCS_TARGET_REPO(defaultmakegov/docs), so the token scope and the dispatch target cannot drift apart when the variable overrides the target.GH_TOKENfrom that step's output throughenv:.Testing
actionlintreports only the existing SC2063 note on thegrep -qx '0*'all-zeros check, which is intended.workflow_dispatchrun on this branch, which always dispatches, mints the token and sends the dispatch end to end.Notes
CI-only change with no effect on the published package, so no changelog entry. [skip changelog]
🤖 Generated with Claude Code