Document the token scopes Forgejo v15 actually requires #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/token-scopes"
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?
Creating a personal repository failed against a real v15 server with
"403 token does not have at least one of required scope(s): [write:user]".
POST /user/repos sits in the /user route group, so it needs write:user in
addition to write:repository. The scopes are now taken from the
tokenRequiresScopes gates in v15's routers/api/v1/api.go and listed per
command in the README and
fgj auth login --help.Also stop
pr create --labelfrom aborting when the token lacksread:organization: a 403 on the organisation-label fallback is treated
like a 404, so repository labels still work and an org-only label is
reported as unknown.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
🤖 Generated with Claude Code