Repository navigation
docs: state that the bot token must be a classic PAT - #1656
Merged
Merged
Conversation
GitHub's notifications endpoints accept only classic personal access tokens, so the fine-grained permission list in the example config (including a notifications:write permission) described a token Tend cannot run on. State that the bot token must be a classic PAT and why.
tend-agent
commented
Nov 8, 2026
tend-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
/tend-ci-runner:nightly Step 1 still treats STATUS=fine-grained from tend runtime pat-scope-audit as "skip". Now that this doc says only a classic PAT works, a consumer who installed a fine-grained token passes the nightly audit with no tracking issue. Their notifications polling still can't use the token. I'm pushing a one-line change to Step 1 so that status opens or updates the same PAT-titled tracking issue, saying the token must be replaced with a classic PAT.
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 example config (
docs/tend.example.yaml, mirrored into theinstall-tendskill's references) offered a fine-grained PAT as an alternative to the classic one. Its list includednotifications:write, and it said that permission was what lets the action mark threads read. GitHub's notifications API docs say "These endpoints only support authentication using a personal access token (classic)." A consumer who followed that paragraph would get a token thattend-notificationsand the mark-read step cannot use. This PR replaces the paragraph with a statement that the bot token must be a classic PAT, and says why.It also changes Step 1 of
/tend-ci-runner:nightly. That step skippedSTATUS=fine-grainedfromtend runtime pat-scope-audit, so the nightly audit passed a non-classic token. Now it opens or updates the samePATtracking issue it uses for missing scopes, and says the token has to be replaced with a classic PAT.This matches what the rest of tend already assumes.
install-tendmints only classic tokens, and the scope audit checks the classicX-OAuth-Scopesheader.Docs and skill text only, so there's no regression test. The pre-commit mirror hook regenerated the
install-tendcopy, and pre-commit passes.