Repository navigation
feat: extend GitHub App provisioning for organizations and Nix - #1940
Merged
Merged
Conversation
gerchowl
force-pushed
the
feature/1915-gh-app-provision-org-secrets
branch
from
October 27, 2026 09:26
9ac40ec to
e7b975e
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
Extend GitHub App provisioning to store organization secrets with selected-repository visibility, expose a Nix flake app, and report the correct terminal state after a rejected callback.
Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlytest-- Adding or updating testsbuild-- Build system or dependency changesModifiers
!)Changes Made
--reposwithout--org-secret.--org-secret --reposwith organization-owner validation and mutual exclusion with--no-secrets; credentials stay on stdin and subprocess output stays captured.nix run .#app-provisionthrough the existing vig-utils package.NIX_CONFIG.Changelog Entry
Added
--org-secret --reposnix run .#app-provisionand document masked App tokens appended to existing Nix configurationTesting
Round 2: regression tests first produced 3 failures and 1 pass (exit 1), then the full provisioning suite passed (59 tests, exit 0):
uv run --with pytest-xdist pytest packages/vig-utils/tests/test_gh_app_provision.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1915-r2.uv run --with pytest-xdist pytest packages/vig-utils/tests/test_gh_app_provision.py tests/test_flake_checks.py::test_app_provision_app_points_at_console_script -n 4 --basetemp=$HOME/.cache/devkit-pytest/1915— 56 passed, exit 0.Manual Testing Details
nix run .#app-provision -- --dry-run --name example-bot --owner example --repo example/repo --org-secret --repos repo,otherprinted the manifest and exited 0. No live App or secrets were created. Full Nix/container suites remain CI checks.Checklist
CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Rebased onto dev after #1941 merged the fixture maintenance fix for #1939. Final CI passed on rebased head
e7b975eb54d7f54ce418d638c0e028ac3985b073, including Test Summary, Project Tests and flake gates.Secret writes remain sequential and may partially succeed; the existing exclusive recovery PEM behavior applies to both storage modes. Organization plan/policy and installation requirements are documented. App token Nix configuration overrides earlier
access-tokensdirectives while preserving other settings.Refs: #1915