Skip to content

feat(workflows): switch App credentials to client-id with legacy fallback - #1373

Merged
c-vigo merged 3 commits into
devfrom
feature/1365-client-id-app-credentials
Aug 7, 2026
Merged

c-vigo merged 3 commits into
devfrom
feature/1365-client-id-app-credentials

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

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_ID org secrets can be retired (#1366) once
every consumer is on this release.

Type of Change

  • feat -- New feature
  • test -- Adding or updating tests
  • docs -- Documentation only

Modifiers

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

Deliberately 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 the
    client-id input added in vig-os/sync-issues-action v0.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_ID reference in vig-os — without it the
    secret cannot be retired and the ADR row would be wrong. Note: exo-pet never
    had a COMMIT_APP_ID org secret, so the stamped app-id line was passing an
    empty value there — this also closes that live gap.
  • devkit-upgrade.yml scaffold: preflight gates on
    DEVKIT_UPGRADE_APP_CLIENT_ID or the legacy DEVKIT_UPGRADE_APP_ID
    (fail-fast only when both are absent), emits a deprecation ::warning:: on
    the 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 supports client-id
    (it is used with client-id elsewhere in the same scaffold) — no bump needed.
  • Tests: new tests/test_workflow_client_id_credentials.py pins the
    credential 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.py asserts the new secret name, the
    client-id mint with the exact fallback expression, and the deprecation
    warning. TDD: failing tests committed first (78508ca), implementation second
    (49be474).
  • Docs: RELEASE_CYCLE.md COMMIT_APP row, DOWNSTREAM_RELEASE.md
    required-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_ID reference remains in
assets/workspace/" holds for COMMIT_APP_ID; the two remaining
DEVKIT_UPGRADE_APP_ID references are the deliberate one-release fallback,
removed by #1366. Hits in the stamped .devcontainer/CHANGELOG.md are
immutable released-entry history and exempt.

Changelog Entry

Changed

  • Stamped workflows authenticate with App Client IDs — new org secret required (#1365)
    • Action required before upgrading: create a DEVKIT_UPGRADE_APP_CLIENT_ID
      secret (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_ID still works as a
      fallback (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.yml now passes COMMIT_APP_CLIENT_ID through the client-id
      input added in vig-os/sync-issues-action v0.5.0 — the numeric
      COMMIT_APP_ID secret is no longer read anywhere and can be retired once
      every consumer is on this release.
    • devkit-upgrade.yml prefers DEVKIT_UPGRADE_APP_CLIENT_ID in its
      preflight gate and create-github-app-token mint.
    • Nothing in the auth path is numerically load-bearing: GitHub accepts either
      the App ID or the Client ID as the App JWT issuer.

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • RED → GREEN: the 6 new/changed assertions failed before the workflow edits,
    24/24 pass after.
  • Full pytest: 1253 passed; the 4 failures
    (test_uv_installed, test_manifest_files, test_smoke_test_flag_deploys_assets,
    test_github_cli_authentication) reproduce identically on clean origin/dev
    in a separate worktree — stale local image / environment, not this change.
  • just precommit (full suite, all files): green.
  • just test-bats: 575 ok; the 9 IN_CONTAINER hook-guard failures reproduce
    identically on clean origin/dev. All five rendered-workflow actionlint
    tests (Adopt actionlint for authored and per-mode rendered workflow templates #995) pass over the changed templates.
  • Both org secret sets verified live: DEVKIT_UPGRADE_APP_CLIENT_ID and
    COMMIT_APP_CLIENT_ID exist in vig-os and exo-pet.

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)
  • 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
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Release-note reminder for the train: the ordering rule (create
DEVKIT_UPGRADE_APP_CLIENT_ID before upgrading) must appear prominently in the
release 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

@c-vigo
c-vigo force-pushed the feature/1365-client-id-app-credentials branch from 02e9f38 to 0e90d61 Compare August 7, 2026 15:03
@c-vigo
c-vigo force-pushed the feature/1365-client-id-app-credentials branch from 0e90d61 to 11aff07 Compare August 7, 2026 15:44
@c-vigo
c-vigo merged commit 43dbce3 into dev Aug 7, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1365-client-id-app-credentials branch August 7, 2026 15:57
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