docs: authenticate the docs dispatch with the org automation App - #19
Open
emmanuel-defreitas wants to merge 1 commit into
Open
docs: authenticate the docs dispatch with the org automation App#19emmanuel-defreitas wants to merge 1 commit into
emmanuel-defreitas wants to merge 1 commit into
Conversation
The documented workflow required a CORPORA_DOCS_DISPATCH_TOKEN PAT that was never created, so every source repo had to wait on a long-lived credential before the dispatch could work at all. The org already exposes AUTOMATION_APP_ID and AUTOMATION_APP_PRIVATE_KEY to every repo (visibility=all), and corpora-auth already mints short-lived App tokens this way in pr-merged.yml. Reusing that means a new source repo needs no secret provisioned, nothing to rotate, and a token scoped to corpora-docs that expires within the hour. Snippet is line-for-line identical to exegia/corpora-auth#78. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
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.
Pairs with exegia/corpora-auth#78.
Why
The documented
notify-docs.ymlneeded aCORPORA_DOCS_DISPATCH_TOKENPAT withcontents: writeon this repo. That secret was never created, so the dispatch has been dormant since it shipped — every source repo would have been blocked on provisioning a long-lived credential.The org already exposes
AUTOMATION_APP_IDandAUTOMATION_APP_PRIVATE_KEYto every repo (visibility=all), andcorpora-authalready mints short-lived App tokens this way inpr-merged.yml. Reusing that pattern is strictly better:corpora-docsalone viaowner+repositories, expires within the hourChange
actions/create-github-app-token@v3— verified line-for-line identical to what shipped in corpora-auth#78.contents: write).<Note>now explains whycontinue-on-erroron the minting step is load-bearing rather than boilerplate.CORPORA_DOCS_DISPATCH_TOKENanywhere in the repo.scripts/mirror_sections.py --checkpasses.