Repository navigation
fix: harden GitHub App provisioning callbacks and inputs - #1924
Merged
Merged
Conversation
gerchowl
force-pushed
the
bugfix/1919-gh-app-provision-hardening
branch
from
October 27, 2026 08:55
a6209aa to
04232c8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A browser reload or concurrent callback could repeat the single-use manifest exchange and replace a successful result with an error. Claim the callback before processing so subsequent requests return a fixed HTTP 200 page without changing state.
Type of Change
fix-- Bug fixtest-- Adding or updating testsfeat-- New featuredocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)ci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
--base-url; make it mutually exclusive with explicit--host.Changelog Entry
Fixed
--hostwith--base-url; cover exchange timeout and malformed JSON errors without exposing secretsTesting
just test) -- full suite reserved for CI per task instructions.uv run --with pytest-xdist pytest packages/vig-utils/tests/test_gh_app_provision.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1919-- exit 1, 9 failed / 36 passed before implementation. Existing sanitized timeout/JSON behavior already passed.uv run --with pytest-xdist pytest tests/test_devkit_plugin.py -k app_provision_checks -n 4 --basetemp=$HOME/.cache/devkit-pytest/1919-- exit 1, 1 failed before implementation.uv run --with pytest-xdist pytest packages/vig-utils/tests/test_gh_app_provision.py tests/test_devkit_plugin.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1919-- exit 0, 263 passed, including lookup-before-dispatch coverage.uv run --with pytest-xdist pytest packages/vig-utils/tests/test_gh_app_provision.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1919-- exit 0, 45 passed before the final rebase; the combined 263-test suite passed again after the final rebase.nix developwith repository hooks enabled.Manual Testing Details
Self-reviewed the diff and callback claim ordering. No live App was created; network and secret writes are mocked in tests.
Checklist
CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
All 16 checks passed on
04232c8d94b145244871c88bae170c369efc6bb3; CI run 40476885094 completed successfully, including the finalTest Summarygate.Timeout and malformed JSON errors retain the existing generic sanitized message. Explicit
--hostwith--base-urlnow exits 2 rather than silently ignoring--host.Refs: #1919