docs: add token permissions documentation for autodiscovery #11
No reviewers
Labels
No labels
bug
dependencies
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
alex/renovate-bot!11
Loading…
Reference in a new issue
No description provided.
Delete branch "pi/issue10-token-perms-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Updates the README with comprehensive token permissions documentation, addressing the root cause of #10 (token discovers only one repo).
Changes
Token setup section — fully rewritten
Required scopes table:
repo(RW),issue(RW),organization(R),user(R) — the previous README only listedrepo+user, which is insufficient on modern Forgejo (≥ 1.20) since pull requests are modeled as issues and require theissuescope.Classic PAT vs fine-grained PAT: explains why autodiscovery fails with a single-repo-scoped token. A classic PAT grants account-wide access (what autodiscover needs), while a fine-grained PAT scoped to one repo will only discover that one repo — the most common cause of the bug.
Troubleshooting subsection ("only one repository discovered"): step-by-step checklist to diagnose the issue.
Other fixes
RENOVATE_TOKEN→PI_TOKENto match the actual workflow (secrets.PI_TOKEN), with a note explaining the internal mapping.renovate.yml).Links to official docs
Closes #10