Skip to content

docs: creation runbook for the vigos-devkit-upgrade GitHub App - #1742

Merged
c-vigo merged 2 commits into
devfrom
docs/1739-devkit-upgrade-app-runbook
Sep 28, 2026
Merged

c-vigo merged 2 commits into
devfrom
docs/1739-devkit-upgrade-app-runbook

Conversation

@c-vigo

@c-vigo c-vigo commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Description

Adds the missing creation runbook for the vigos-devkit-upgrade GitHub App —
the machine identity behind the scaffolded self-polling devkit-upgrade.yml
workflow — and points that workflow's grant header at the new runbook instead
of restating the grant inline.

Type of Change

  • docs -- Documentation only

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • New docs/runbooks/devkit-upgrade-app.md (docs/runbooks/ did not exist
    yet), mirroring the structure of vig-os/org-config's
    docs/runbooks/github-app.md: Purpose, Prerequisites, Create the App,
    Permissions, Webhooks, Visibility, Installation, Bootstrap secrets, Key
    rotation, What this App must NOT be given.
  • assets/workspace/.github/workflows/devkit-upgrade.yml's grant header:
    removed the restated permission list and replaced the closing
    App provisioning + rotation: https://github.com/vig-os/devkit/issues/1302
    line with a link to the new runbook (absolute URL, since the runbook itself
    is not shipped into consumer repos — test_scaffold_has_no_unshipped_path_references
    requires that).
  • CHANGELOG.md ## Unreleased → ### Added entry (and its
    assets/workspace/.devcontainer/CHANGELOG.md mirror, regenerated by the
    sync-manifest pre-commit hook).

This is a normal-train change, not release-neutral. It edits
assets/workspace/..., which moves the image derivation path, so it cannot
ride the release-neutral lane.

Acceptance criteria (issue #1739)

  • A runbook for the vigos-devkit-upgrade App exists in this repo and
    states the grant, the visibility setting, the install targets and the
    key-rotation procedure — docs/runbooks/devkit-upgrade-app.md,
    Permissions / Visibility / Installation / Key rotation sections.
  • The visibility paragraph links to the recorded decision in
    vig-os/org-config rather than re-deciding it, and says which repo is
    the source of truth for the credential lists — the runbook's Visibility
    section links vig-os/org-config#271 and the APP VISIBILITY DECISION
    jsonnet comment; Bootstrap secrets states vig-os/org-config's
    otterdog/vig-os/vig-os.jsonnet is authoritative for the secret lists.
  • Key rotation includes the GET /app/installations inventory sweep — step
    6 of Key rotation, called out as a required step (the only
    compensating control for a public App's install page).
  • The scaffolded devkit-upgrade.yml header links to the runbook — see
    the header diff above.

Factual gaps flagged instead of guessed

The runbook calls these out inline as "verify against the live App" rather
than inventing values, since no source read for this issue states them:

  • The App's exact display name if it differs from its slug, and its Homepage
    URL.
  • The installation's repository scope ("All repositories" vs. "Only select
    repositories") on vig-os and on exo-pet.

Changelog Entry

### Added

- **Creation runbook for the `vigos-devkit-upgrade` GitHub App**
  ([#1739](https://github.com/vig-os/devkit/issues/1739))
  - New `docs/runbooks/devkit-upgrade-app.md` documents the App's grant, its
    public visibility (linking to the recorded decision in
    `vig-os/org-config`), its install targets, which org secrets carry its
    credentials, and the key-rotation procedure, including the mandatory
    `GET /app/installations` inventory sweep for a public App with no webhook
  - The scaffolded `devkit-upgrade.yml` grant header now links to the runbook
    instead of restating the permission set inline

Testing

  • Tests pass locally
    • uv run pytest tests/test_workflow_devkit_upgrade.py -v --tb=short — 32 passed
    • uv run pytest tests -q --tb=short --deselect tests/test_image.py --deselect tests/test_integration.py — 1307 passed, 1 skipped, 193 deselected
    • prek run --all-files — green (exit 0)
  • Manual testing performed (n/a — documentation + a comment-only workflow change)

Manual Testing Details

N/A.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs) — n/a, this adds a runbook under docs/runbooks/, which is not part of the generated-docs pipeline (docs/generate.py only watches docs/templates/*.j2, docs/narrative/*.md, etc.)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works — n/a for the doc content; the existing test_scaffold_has_no_unshipped_path_references and test_workflow_model.py scaffold tests already cover the workflow header change
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Not urgent (issue is priority:low, effort:small). No App facts were
invented — every claim in the runbook traces to the workflow header, the
vig-os/org-config jsonnet's APP VISIBILITY DECISION comment, that repo's
own docs/runbooks/github-app.md, or issue #1739 itself.

Refs: #1739

@c-vigo
c-vigo merged commit 81e30a8 into dev Sep 28, 2026
15 checks passed
@c-vigo
c-vigo deleted the docs/1739-devkit-upgrade-app-runbook branch September 28, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant