Repository navigation
ci: fail clearly when DOCS_BOT_TOKEN is missing or expired - #300
Merged
Merged
Conversation
The docs workflow has failed on every push to main since Aug 31 with git's "could not read Username for 'https://github.com'" from checkout, because DOCS_BOT_TOKEN no longer authenticates. Check the token before checkout in both workflows that use it and say what's wrong and how to fix it. Signed-off-by: Tim Smith <tsmith84@proton.me>
tas50
force-pushed
the
ci/docs-drift-check
branch
from
November 9, 2026 04:55
51bd444 to
8318f8f
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.
Addresses the failing Update generated docs job (run 42563483566).
Cause
DOCS_BOT_TOKENno longer authenticates, soactions/checkoutfails withcould not read Username for 'https://github.com'. Docs have failed on every push to main since Aug 31; the last success was Jul 2. The secret was last set May 20, which fits an expired 90-day PAT. The checkout v7.0.1 bump landed at the same time but has no auth changes, and every other workflow checks out fine on it.release-readme-version.ymluses the same token and has failed on every release since at least Oct 8.The secret has to be rotated: create a PAT with
contents: writeon this repo for an account on main's branch-protection bypass list, and save it asDOCS_BOT_TOKEN.Change
Both workflows still push to main on merge or release. Each now checks the token first, before checkout, and fails with a message that names the problem and the fix:
Testing
actionlintpasses on both workflows.Bad credentials (HTTP 401)); a valid token with push access exits 0.