You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-ups from the review of #1918 (gh-app-provision CLI, #1909):
Bug: the callback can run twice. In packages/vig-utils/src/vig_utils/gh_app_provision.py (~L226-253), handle_callback never checks code_done. A browser reload or a second request to /callback runs the exchange again. GitHub codes are single-use, so the replay fails, sets self.error (500), and the terminal can report a failure after the secrets were already written. Nothing leaks. Fix: once a code has been accepted, return early on any later callback, and add a test that replays it.
Untested failure paths. Nothing tests a timed-out (subprocess.TimeoutExpired) or malformed (JSONDecodeError) gh api exchange. Today both fall into the generic handler and print nothing secret. Add tests that pin the error message and that no secret appears in the output.
--base-url isn't validated. It should require an http(s) scheme. Passing --host together with --base-url should be rejected, or the precedence documented. Today --host is silently ignored.
One more item from the review of #1920 (the docs and skill): step 1 of plugins/devkit/skills/app-provision/SKILL.md runs /devkit:status "so you do not create a second App". But /devkit:status only reports the fixed RELEASE_APP_*/COMMIT_APP_* secrets, so it misses an existing App under any other <PREFIX>. Before provisioning, the skill should check gh secret list | grep <PREFIX>_ (already used in step 6). The skill's frontmatter description also has one over-long line.
Activity
gerchowl commentedon Oct 26, 2026
One more item from the review of #1920 (the docs and skill): step 1 of
plugins/devkit/skills/app-provision/SKILL.mdruns/devkit:status"so you do not create a second App". But/devkit:statusonly reports the fixedRELEASE_APP_*/COMMIT_APP_*secrets, so it misses an existing App under any other<PREFIX>. Before provisioning, the skill should checkgh secret list | grep <PREFIX>_(already used in step 6). The skill's frontmatter description also has one over-long line.docs(vig-utils): add GitHub App provisioning guide and skill (#1920)
test: cover App provisioning hardening regressions
fix: harden GitHub App provisioning callbacks and inputs
fix: harden GitHub App provisioning callbacks and inputs (#1924)
chore: release 1.19.0 (#2033)