Give the submitter's token only repository and issue scopes #12
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jeff/winget-pkgs!12
Loading…
Reference in a new issue
No description provided.
Delete branch "submitter-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?
For #8. The first run of
tools/setup-submitter jeff/clipwatchstopped at stage 5 with a barecurl: (22) ... 400. Forgejo v16 only lets a token limited to particular repositories haveread/writeissueandrepositoryscopes (services/authz/access_token.go,ValidateRepositoryResource), and the wizard asked forread:useras well.write:repositoryandwrite:issue. jeff/winget-submit#4 stops the action readingGET /user, and commits as a built-inwinget-bot <[email protected]>instead.curluses--fail-with-body, and stage 5 captures each response, so a refusal shows the forge's own message rather than just a status code.Stages 1–4 completed on that first run:
winget-botexists (restricted, not an admin), it has write access here, and onlyjeffcan merge tomain. Running it again resets the bot's password and leaves those as they are.🤖 Generated with Claude Code
https://claude.ai/code/session_01D31MsLkM9DkCauP1EB2zgw