ci(docs): authenticate documentation workflow via GitHub App token - #974
Open
MaxDall wants to merge 1 commit into
Open
ci(docs): authenticate documentation workflow via GitHub App token#974MaxDall wants to merge 1 commit into
MaxDall wants to merge 1 commit into
Conversation
MaxDall
force-pushed
the
fix-documentation-action
branch
from
August 26, 2026 09:46
a006d51 to
b8fa19d
Compare
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.
The
Documentationworkflow regeneratesdocs/supported_publishers.mdand commits it back tomaster. Sincemasteris protected, the defaultGITHUB_TOKENcannot push and the run fails withGH006.This adds an
actions/create-github-app-token@v1step that mints a short-lived token for thefundus-docs-botGitHub App and passes it toactions/checkout, so the auto-commit step pushes as the App. All other steps are unchanged.Required before merge
DOCS_BOT_APP_IDandDOCS_BOT_PRIVATE_KEYmasterruleset bypass list (App bypass requires a Ruleset, not classic branch protection)The App is scoped to
Contents: writeon this repo only, and the token is minted fresh per run (~1h lifetime).Verified
A
workflow_dispatchrun against this branch (run 32954562637) completed successfully: the App token was minted,actions/checkoutused it, andgit-auto-commit-actionpushed the regenerated docs back to the branch. The temporary publisher change used to produce a docs diff, and the resulting bot commit, have both been removed — the PR is now the workflow change only.Not covered by that test: the run checked out this branch, so the protected-branch bypass on
masteris exercised for the first time only after merge.