Skip to content

docs: state that the bot token must be a classic PAT - #1656

Merged
max-sixty merged 2 commits into
mainfrom
docs/classic-pat-only
Nov 8, 2026
Merged

max-sixty merged 2 commits into
mainfrom
docs/classic-pat-only

Conversation

@tend-agent

@tend-agent tend-agent commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

The example config (docs/tend.example.yaml, mirrored into the install-tend skill's references) offered a fine-grained PAT as an alternative to the classic one. Its list included notifications: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 that tend-notifications and 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 skipped STATUS=fine-grained from tend runtime pat-scope-audit, so the nightly audit passed a non-classic token. Now it opens or updates the same PAT tracking 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-tend mints only classic tokens, and the scope audit checks the classic X-OAuth-Scopes header.

Docs and skill text only, so there's no regression test. The pre-commit mirror hook regenerated the install-tend copy, and pre-commit passes.

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 tend-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/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.

@max-sixty
max-sixty merged commit 446ae85 into main Nov 8, 2026
12 checks passed
@max-sixty
max-sixty deleted the docs/classic-pat-only branch November 8, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants