Repository navigation
feat(workflows): switch App credentials to client-id with legacy fallback - #1373
Merged
Merged
Conversation
c-vigo
force-pushed
the
feature/1365-client-id-app-credentials
branch
from
August 7, 2026 15:03
02e9f38 to
0e90d61
Compare
c-vigo
force-pushed
the
feature/1365-client-id-app-credentials
branch
from
August 7, 2026 15:44
0e90d61 to
11aff07
Compare
6 tasks
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
Switches the last two numeric-App-ID holdouts to Client-ID credentials, per the
2026-08-07 credential audit (#1365). Nothing in the auth path is numerically
load-bearing — GitHub accepts either the App ID or the Client ID as the App JWT
issuer — so the numeric
*_APP_IDorg secrets can be retired (#1366) onceevery consumer is on this release.
Type of Change
feat-- New featuretest-- Adding or updating testsdocs-- Documentation onlyModifiers
!) -- This change breaks backward compatibilityDeliberately not breaking: the rename rides a minor via a one-release
fallback (see below), per the triage decision on #1365.
Changes Made
sync-issues.yml(both copies — devkit's own and the stamped scaffold):app-id: COMMIT_APP_ID→client-id: COMMIT_APP_CLIENT_ID, using theclient-idinput added invig-os/sync-issues-actionv0.5.0(Add client-id input as the preferred App credential sync-issues-action#168; the pin was already bumped to v0.5.0 by
ci(actions): update github-actions (minor and patch) #1368). Devkit's own copy is included beyond the issue's stated scope because
it was the last live
COMMIT_APP_IDreference in vig-os — without it thesecret cannot be retired and the ADR row would be wrong. Note: exo-pet never
had a
COMMIT_APP_IDorg secret, so the stampedapp-idline was passing anempty value there — this also closes that live gap.
devkit-upgrade.ymlscaffold: preflight gates onDEVKIT_UPGRADE_APP_CLIENT_IDor the legacyDEVKIT_UPGRADE_APP_ID(fail-fast only when both are absent), emits a deprecation
::warning::onthe legacy path pointing at [CHORE] Drop the numeric App-ID fallback and retire *_APP_ID org secrets #1366, and mints via
client-id: ${{ secrets.DEVKIT_UPGRADE_APP_CLIENT_ID || secrets.DEVKIT_UPGRADE_APP_ID }}.A consumer that upgrades before its org grew the new secret keeps working —
the bricking hazard called out in Switch stamped workflows to client-id App credentials (next release) #1365's sequencing section is gone. The
pinned
create-github-app-token@bcd2ba49…(v3) already supportsclient-id(it is used with
client-idelsewhere in the same scaffold) — no bump needed.tests/test_workflow_client_id_credentials.pypins thecredential contract for both sync-issues copies (client-id input, no app-id,
SHA pin ≥ v0.5.0, no numeric secret reference);
tests/test_workflow_devkit_upgrade.pyasserts the new secret name, theclient-idmint with the exact fallback expression, and the deprecationwarning. TDD: failing tests committed first (78508ca), implementation second
(49be474).
RELEASE_CYCLE.mdCOMMIT_APP row,DOWNSTREAM_RELEASE.mdrequired-secrets list (repo + stamped copy), and the ADR secrets table no
longer state a numeric App ID is required. The "rename the DEVKIT_UPGRADE
entry" step from the issue was a no-op — no such entry exists in those docs.
Acceptance note: "no numeric
*_APP_IDreference remains inassets/workspace/" holds forCOMMIT_APP_ID; the two remainingDEVKIT_UPGRADE_APP_IDreferences are the deliberate one-release fallback,removed by #1366. Hits in the stamped
.devcontainer/CHANGELOG.mdareimmutable released-entry history and exempt.
Changelog Entry
Changed
DEVKIT_UPGRADE_APP_CLIENT_IDsecret (org or repo) holding the upgrade App's Client ID (
Iv23li…).Create the secret first, then upgrade — config-first, always. For this
release the legacy numeric
DEVKIT_UPGRADE_APP_IDstill works as afallback (with a deprecation warning), so an upgrade that races the secret
is not bricked; the fallback is removed in a future release
(#1366).
sync-issues.ymlnow passesCOMMIT_APP_CLIENT_IDthrough theclient-idinput added in
vig-os/sync-issues-actionv0.5.0 — the numericCOMMIT_APP_IDsecret is no longer read anywhere and can be retired onceevery consumer is on this release.
devkit-upgrade.ymlprefersDEVKIT_UPGRADE_APP_CLIENT_IDin itspreflight gate and
create-github-app-tokenmint.the App ID or the Client ID as the App JWT issuer.
Testing
just test)Manual Testing Details
24/24 pass after.
(
test_uv_installed,test_manifest_files,test_smoke_test_flag_deploys_assets,test_github_cli_authentication) reproduce identically on cleanorigin/devin a separate worktree — stale local image / environment, not this change.
just precommit(full suite, all files): green.just test-bats: 575 ok; the 9IN_CONTAINERhook-guard failures reproduceidentically on clean
origin/dev. All five rendered-workflow actionlinttests (Adopt actionlint for authored and per-mode rendered workflow templates #995) pass over the changed templates.
DEVKIT_UPGRADE_APP_CLIENT_IDandCOMMIT_APP_CLIENT_IDexist invig-osandexo-pet.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Release-note reminder for the train: the ordering rule (create
DEVKIT_UPGRADE_APP_CLIENT_IDbefore upgrading) must appear prominently in therelease notes per the acceptance criteria — the changelog entry above is
written to be lifted verbatim. Old-scaffold repos vig-os/h5v#6 and
vig-os/scitadel#209 need their bumps before they benefit; vig-os/tessera#364
migrates independently.
Refs: #1365