Skip to content

Switch stamped workflows to client-id App credentials (next release) #1365

Closed

Description

@c-vigo

Context

A 2026-08-07 audit of GitHub-App credentials across vig-os and exo-pet found
that every App secret pair can be consolidated to Client ID only. Nothing in
the auth path is numerically load-bearing: @octokit/auth-app accepts a
client-ID string (Iv23li…) wherever it accepts a numeric App ID, on every
pinned action version currently in use.

devkit already went client-ID-only for the Release App and for most of the
Commit App. Two stamped workflows are the remaining holdouts, and because they
are stamped, they keep numeric *_APP_ID secrets alive in every consumer
repo
in both orgs. Retiring the org secrets is blocked until this ships.

Scope — exact references

1. assets/workspace/.github/workflows/sync-issues.yml

  • :177 — app-id: ${{ secrets.COMMIT_APP_ID }} passed to
    vig-os/sync-issues-action@285a0af… (v0.4.0, :175).
  • Change to client-id: ${{ secrets.COMMIT_APP_CLIENT_ID }} and bump the
    action pin, once Add client-id input as the preferred App credential sync-issues-action#168 ships the client-id input.
  • COMMIT_APP_CLIENT_ID already exists as an org secret in both orgs — no new
    secret is needed for this half.

2. assets/workspace/.github/workflows/devkit-upgrade.yml

  • :11 — header comment naming DEVKIT_UPGRADE_APP_ID.
  • :54-61 — the "Require the upgrade App identity" preflight reads
    APP_ID: ${{ secrets.DEVKIT_UPGRADE_APP_ID }} into env (:55), gates on it
    (:59), and names it in the ::error:: message (:60).
  • :66-68 — actions/create-github-app-token@bcd2ba49… (v3) with
    app-id: ${{ secrets.DEVKIT_UPGRADE_APP_ID }}.
  • Rename the secret to DEVKIT_UPGRADE_APP_CLIENT_ID and switch the action
    input to client-id:. The pinned create-github-app-token is v3, which is
    at or above v3.1.0 — the release that introduced client-id — so no action
    bump is required here; confirm against the pinned SHA before landing.

3. tests/test_workflow_devkit_upgrade.py

  • :14 and :129 — docstrings naming DEVKIT_UPGRADE_APP_ID.
  • :132 — assert "secrets.DEVKIT_UPGRADE_APP_ID" in text must become the
    client-ID name. :133 (_PRIVATE_KEY) is unchanged.

4. Docs

  • docs/RELEASE_CYCLE.md:608 — the COMMIT_APP row still carries the
    parenthetical "COMMIT_APP_ID still required by vig-os/sync-issues-action
    in sync-issues.yml". Drop it, and rename the DEVKIT_UPGRADE entry.
  • docs/DOWNSTREAM_RELEASE.md:124 — COMMIT_APP_ID (required by
    vig-os/sync-issues-action in sync-issues.yml) in the required-secrets list.
  • docs/security/ADR-secrets-management.md:56 — the COMMIT_APP row lists
    COMMIT_APP_ID among the consumed secrets.

(Files under docs/issues/ and docs/pull-requests/ are synced historical
records — leave them alone.)

Sequencing — read before scheduling

The order is load-bearing, and getting it wrong breaks consumers:

  1. Add client-id input as the preferred App credential sync-issues-action#168 ships first. No client-id input, no
    sync-issues change.
  2. DEVKIT_UPGRADE_APP_CLIENT_ID org secrets must exist in BOTH vig-os and
    exo-pet before any consumer adopts the release.
    The preflight at
    devkit-upgrade.yml:54-61 hard-fails without it, which would brick the very
    automation that delivers the upgrade. Config-first, always. The exo-pet side
    is tracked in exo-pet/org-config#1; the vig-os side is tracked in
    vig-os/org-config under an existing tracker being re-scoped separately.
  3. Old numeric secrets are deleted only after the last consumer upgrades.
    Migration principle: no numeric *_APP_ID secret is deleted while any
    pinned workflow still references it.
    Cautionary precedent —
    exo-pet/playground-carlos's sync-issues job broke silently for a week
    when COMMIT_APP_ID was unavailable; the job kept reporting success while
    syncing nothing.

Consumer readiness

Acceptance criteria

  • sync-issues.yml scaffold passes client-id + COMMIT_APP_CLIENT_ID and
    pins the sync-issues-action release from Add client-id input as the preferred App credential sync-issues-action#168.
  • devkit-upgrade.yml scaffold uses DEVKIT_UPGRADE_APP_CLIENT_ID in the
    preflight, the error message, the header comment, and the client-id:
    input.
  • tests/test_workflow_devkit_upgrade.py asserts the new names and passes.
  • The three docs above no longer state that a numeric App ID is required.
  • Release notes call out the new required org secret and the ordering
    rule (create the secret before upgrading), prominently enough that a
    consumer cannot miss it.
  • No numeric *_APP_ID reference remains in assets/workspace/.

Open question for triage

Renaming a required secret in a stamped workflow is breaking for any
consumer that upgrades before the org secret exists — the preflight fails hard.
No semver: label has been applied here on purpose: please decide whether this
rides a minor with a loud release note, or warrants a major. A backward-compatible
fallback (accept either secret name for one release, warn on the old one) would
keep it minor and is worth considering.

Activity

  1. added
    chore
    priority:high
    area:ci
    effort:medium
    on Aug 7, 2026
  2. c-vigo commented on Aug 7, 2026

    @c-vigo
    ContributorAuthor

    Cross-reference correction — the sibling issues filed alongside this one landed with these numbers:

    The body above was written before the last three numbers were known; where it says scitadel#208, tessera#363, or org-config#1, use the numbers in this list.

  3. added this to the 1.6.1 milestone on Aug 7, 2026
  4. added
    semver:minor
    on Aug 7, 2026
  5. c-vigo commented on Aug 7, 2026

    @c-vigo
    ContributorAuthor

    Fixed on dev by PR #1373 (43dbce3): both stamped workflows (sync-issues.yml, devkit-upgrade.yml) now pass client-id App credentials, with a backward-compatible fallback to the legacy numeric secret in devkit-upgrade.yml so the rename rides a minor. Ships with the next release. Fallback removal and org-secret retirement tracked in #1366.

  6. added a commit that references this issue on Aug 14, 2026
  7. added a commit that references this issue on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cichoreeffort:mediumpriority:highsemver:minor

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions