Skip to content

feat(workflow): mint a GitHub App token in devkit-upgrade (App-only identity) - #1304

Merged
c-vigo merged 3 commits into
release/1.5.0from
bugfix/1302-devkit-upgrade-app-token
Jul 30, 2026
Merged

c-vigo merged 3 commits into
release/1.5.0from
bugfix/1302-devkit-upgrade-app-token

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #1302 — the devkit-upgrade workflow (#1296, unreleased) now authenticates exclusively via a dedicated GitHub App: a per-run installation token is minted from the DEVKIT_UPGRADE_APP_ID + DEVKIT_UPGRADE_APP_PRIVATE_KEY secrets with SHA-pinned actions/create-github-app-token (the exact pattern devkit's own prepare-release.yml uses). The static DEVKIT_UPGRADE_TOKEN secret is removed with no fallback: a PAT is user-bound, expiring, and single-owner across the vig-os / exoma-ch / exo-pet consumer orgs.

  • Fail-fast step names both secrets and the required App permissions (contents, PRs, issues, workflows — all RW).
  • Checkout persists the minted token, so the scaffold push, adoption issue, and PR all act as the App and the PR triggers CI.
  • Changelog: the frozen [1.5.0] - TBD entry for feat(workflow): self-polling devkit-upgrade workflow (auto adoption PR in consumers) #1296 is updated in place (unreleased section; .devcontainer/CHANGELOG.md copy synced by the hook).

Targeted at release/1.5.0: #1296 has never shipped, so 1.5.0 ships App-only with zero migration debt.

Verification

TDD: test_requires_app_identity_and_never_uses_github_token_for_pr rewritten first (RED at 0e3a57c), template reworked to GREEN (15/15 in tests/test_workflow_devkit_upgrade.py); 278 bats ok incl. rendered-template actionlint; full pre-commit suite green. Live dispatch proof lands with the RC validation plan (App provisioning per #1302).

Refs: #1302

c-vigo added 3 commits July 30, 2026 09:48
…dentity)

Replace the static DEVKIT_UPGRADE_TOKEN secret with a per-run installation
token minted from DEVKIT_UPGRADE_APP_ID + DEVKIT_UPGRADE_APP_PRIVATE_KEY via
SHA-pinned actions/create-github-app-token (the pattern prepare-release.yml
already uses). A static PAT is no longer supported: user-bound, expiring, and
single-owner across the vig-os/exoma/exo-pet consumer orgs. Fail-fast names
both secrets; checkout/push, the adoption issue and the PR all authenticate
as the App so the PR still triggers CI. Contract change lands on the release
branch: #1296 has never shipped, so 1.5.0 ships App-only with no migration.

Refs: #1302
@c-vigo
c-vigo merged commit 3a38cdf into release/1.5.0 Jul 30, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1302-devkit-upgrade-app-token branch July 30, 2026 10:20
c-vigo added a commit that referenced this pull request Jul 30, 2026
…1307)

## Summary

Restart of the 1.5.0 finalization (maintainer-approved): the first live
`devkit-upgrade` dispatch exposed #1305 (runtime auto-detection picks
the runner's broken podman → `crun: unknown version specified` at the
install step). Since nothing consumed the final (draft release deleted,
tag deleted, `latest`/`main`/promote untouched), the fix ships **within
1.5.0** instead of a same-day 1.5.1.

- Merge `dev` (PR #1306: docker-first daemon-probed detection +
`--docker` in the upgrade template) into `release/1.5.0` — clean merge,
App-era template keeps all #1302/#1304 content plus the new flag.
- `prepare-changelog reset-version` restores the `- TBD` heading
(finalize will re-stamp).
- #1305 changelog entry added to the frozen 1.5.0 section (was missed in
#1306 — dev's Unreleased stays empty since the fix ships here).

Precedent: 1.4.0 unfreeze (PR #1215). After merge: rc3, focused
revalidation (delta is #1305 only), re-approve, re-finalize.

Refs: #1305
c-vigo added a commit that referenced this pull request Jul 30, 2026
#1310)

## Summary

The 1.5.1 re-cut (maintainer decision): devkit-smoke-test's tag
\`1.5.0\` is tombstoned by org-enforced release immutability (its 1.5.0
was published mid-train and deleted during restart #1), so the
cross-repo promote gate can never pass for 1.5.0. The fully validated
content re-releases as **1.5.1**; 1.5.0 becomes a ghost (devkit's
never-published tag + draft get deleted).

- Merges \`release/1.5.0\` back into dev — the sync promote would have
performed: #1302/#1304 (App-only auth), #1305 tail, #1308/#1309
(verified API publish), release-branch changelog state.
- Changelog: empty finalize scaffold excised, dated 1.5.0 section
unprepared back to \`## Unreleased\` so \`prepare-release 1.5.1\`
freezes it.

All rc4 validation evidence (devkit#1301 evidence trail) applies
verbatim — 1.5.1's content is byte-identical apart from the version
string.

Refs: #1308
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