Repository navigation
feat(vig-utils): add GitHub App provisioning CLI - #1918
Merged
Merged
Conversation
Identify public Actions slot metadata explicitly so security analysis does not classify labels as credential contents. Refs: #1909
gerchowl
force-pushed
the
feature/1909-gh-app-provision
branch
from
October 26, 2026 18:50
2d6043d to
fd7a921
Compare
This was referenced Oct 26, 2026
Open
gerchowl
added a commit
that referenced
this pull request
Oct 26, 2026
## Description Part A2 of #1909: the human docs page and the agent skill for `gh-app-provision` (CLI shipped in #1918). Docs and skill only; no change to `gh_app_provision.py` or its tests. ## Type of Change - [x] `docs` -- Documentation only ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - `docs/GITHUB_APP_PROVISIONING.md`: App vs PAT, end-to-end flow, the three binding modes (default `127.0.0.1`, `--host`, `--base-url`) and the remote-browser failure mode, key handling (`--pem-out`, `--no-secrets`), the SHA-pinned `actions/create-github-app-token` snippet, and known limits (#1915, #1919). - `plugins/devkit/skills/app-provision/SKILL.md`: `/devkit:app-provision`, with `disable-model-invocation: true` because it creates an App and writes secrets. - Links from `docs/WORKFLOW_SECURITY.md`, `packages/vig-utils/README.md` and `plugins/devkit/README.md`; `app-provision` added to `EXPECTED_SKILLS` in `tests/test_devkit_plugin.py`. ## Changelog Entry ### Added - **GitHub App provisioning CLI** ([#1909](#1909)) - Add the [GitHub App provisioning guide](docs/GITHUB_APP_PROVISIONING.md), linked from `docs/WORKFLOW_SECURITY.md`, and the `/devkit:app-provision` agent skill ## Testing - [x] Tests pass locally: TDD does not apply (docs and a skill file). `tests/test_devkit_plugin.py`: 213 passed. `check-skill-names plugins/devkit/skills`: exit 0. - [x] Manual testing performed: every flag named in the docs checked against `uv run gh-app-provision --help`. ### Manual Testing Details Pre-commit hooks (pymarkdown, typos, manifest sync) pass. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have updated the documentation accordingly - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors ## Additional Notes CI may be red on the expired `.vulnixignore` exceptions, which is being fixed separately. Refs: #1909
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
Add
gh-app-provisionto vig-utils so users can create a GitHub App through the manifest flow and store its credentials as repository Actions secrets using authenticatedgh, without a PAT. The user completes GitHub's Create and Install browser steps.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
--dry-run, reverse-proxy--base-url, exclusive mode-0600--pem-out, and--no-secretsfor skipping repository secret writes.127.0.0.1, bind and advertise the exact explicit IPv4--host, and use loopback behind--base-url. Remove host autodetection and reject wildcard addresses. Remote browsers require an explicit reachable host or proxy.gh apioutput. Send secret values through stdin togh secret set; capture subprocess output and sanitize failure messages so codes and credentials never reach terminal or request logs.Changelog Entry
Added
gh-app-provisionto create an App through GitHub’s manifest flow and store repository secrets, with a network-free--dry-run, reverse-proxy--base-url, exclusive private-key--pem-out, and--no-secretsTesting
just test-vig-utils, with four workers and an isolated basetemp outside the repository): 813 passed, exit 0.Manual Testing Details
uv run pytest packages/vig-utils/tests/test_gh_app_provision.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1909: 34 passed, exit 0, including the eight source tests, console entry point, dry-run side effects, callback success/failure and secret redaction, PEM permissions/exclusive creation, binding rules, skipped secret writes, and cleanup.uv run --with pytest-xdist pytest packages/vig-utils/tests -n 4 --basetemp=$HOME/.cache/devkit-pytest/1909: 813 passed, exit 0.Checklist
--help; standalone docs and skill are a separate PR)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Follow-ups outside this PR: the human docs page and plugin skill (PR 2), organization secrets with selected-repository visibility (
--org-secret --repos), the Nixaccess-tokensrecipe, a flake app wrapper, and the owner's real end-to-end provisioning run after merge.All checks on the final head pass, including CodeQL and the CI Test Summary. Commit hooks, including Bandit and scaffold synchronization, pass. The worktree is clean and the branch includes the latest
dev.Refs: #1909