Add a wizard that sets up the submitter for a program #11
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!11
Loading…
Reference in a new issue
No description provided.
Delete branch "setup-submitter"
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. #8 closes once the wizard has been run for
jeff/clipwatch.tools/setup-submitter <owner>/<repo>is run by an administrator, withfjlogged in. Each stage either checks something or confirms before changing anything:fjis logged in as an administrator and the program's repository exists.winget-bot(restricted,max_repo_creation: 0, no organizations), or resets its password if it already exists. The password is random and is kept only while the wizard runs.jeff/winget-pkgs.jeffto merge tomain. Today's protection blocks direct pushes and requires the check, but has no merge whitelist, so anyone with write access could merge a passing pull request. That would have included the bot.winget-submit-<owner>-<repo>, limited tojeff/winget-pkgsthrough Forgejo 16's repository-specific tokens. Scopes:write:repository,write:issue, andread:user, whichjeff/winget-submitneeds to read its own name and email for the commit. The password reaches curl on stdin, never the command line, and the token is never printed.WINGET_BOT_TOKENon the program withfj secret set.user_can_pushanduser_can_mergeonmainare false, and that it can't reach the program's own repository.A token per program means one can be revoked without touching the others, and the wizard is re-run for each new program. CONTRIBUTING describes it, and the devshell gains
curlandjq.bash -npasses. Shellcheck's only findings are info notes about library functions this wizard doesn't use, plus one false positive inside the library, which comes from mattpocock/skills 1.3.1 (MIT) and is unchanged. Its copyright is credited in the SPDX header.Not yet run. Running it is the first real test of stages 2–7.
🤖 Generated with Claude Code
https://claude.ai/code/session_01D31MsLkM9DkCauP1EB2zgw