Skip to content

fix(standards-sync): mint the App token via client-id - #59

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/standards-sync-client-id
Jul 7, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/standards-sync-client-id

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Jul 7, 2026 •

Copy link
Copy Markdown
Member

Summary

actions/create-github-app-token@v3 deprecates app-id for client-id (upstream recommends the client ID as the JWT issuer); the pilot sync run annotated the deprecation warning on every leg. Renames the reusable workflow's secret to app-client-id and passes it as client-id. The sole caller (standards .github/workflows/sync.yml) flips secret names in lockstep with its next pin bump (same activation batch).

Verification

actionlint + zizmor clean locally; no remaining app-id references in the workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy


Note

Low Risk
CI-only secret/input rename with no change to sync logic; callers must wire the renamed secret before non–dry-run runs.

Overview
Aligns the reusable standards-sync workflow with actions/create-github-app-token@v3, which deprecates app-id in favor of client-id as the JWT issuer.

The workflow secret is renamed from app-id to app-client-id, credential checks and error messages use that name, and the mint step passes client-id instead of app-id. Callers that run with dry-run: false must supply the App client ID under the new secret name (the PR description notes the standards caller updates in the same activation batch).

Reviewed by Cursor Bugbot for commit 461c77f. Bugbot is set up for automated code reviews on this repo. Configure here.

@claude

claude Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 50s —— View job


PR Review

  • Gather context
  • Read changed file
  • Review diff
  • Post findings

Overall: Approve. This is a clean, well-scoped deprecation migration. All references to the old app-id secret name are consistently updated within this file, and no regressions are introduced.


Findings

Correctness — all call sites updated consistently

All four mutation points are coherent:

Location Before After
secrets: declaration (L43–44) app-id app-client-id
Require-credentials env var (L157, 160–161) APP_ID / app-id APP_CLIENT_ID / app-client-id
Token mint action input (L169) app-id: client-id:

No stale app-id references remain in the file.

SHA pin is unchanged and correct

The actions/create-github-app-token pin at bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 is retained. Consistent with CLAUDE.md's "pin everything by SHA" requirement.

Breaking change is safe

This is a breaking interface change for callers: any consumer currently passing app-id will hit the "Require App credentials" guard (empty APP_CLIENT_ID) and hard-fail with a clear error rather than silently degrading. That is the correct failure mode. The PR description states the sole caller (standards/.github/workflows/sync.yml) will flip in the same activation batch — no concern.

No security regressions

client-id is the upstream-recommended JWT issuer identifier for GitHub Apps. No new secrets introduced; secret scoping model is unchanged.


No issues requiring changes. The PR is ready to merge.

actions/create-github-app-token deprecated app-id in favor of client-id
(every real sync run annotated a deprecation warning). Rename the
workflow_call secret to app-client-id to match; the sole caller
(standards sync.yml) flips in lockstep with its next pin bump.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium. Cursor Bugbot completed successfully with no findings. Approved; no reviewers assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@kyle-sexton
kyle-sexton merged commit 789abbe into main Jul 7, 2026
4 checks passed
@kyle-sexton
kyle-sexton deleted the fix/standards-sync-client-id branch July 7, 2026 01:58
kyle-sexton added a commit that referenced this pull request Jul 16, 2026
## Summary

WP-13 (Execution Plan:
https://claude.ai/code/artifact/1f2e97bf-823a-4221-99df-b36e7a7f2a55).
Closes decision #16, confirms #17 as still correctly a no-op (Decisions
Log:
https://claude.ai/code/artifact/232ecdce-8316-4880-8c0a-dc3c7dcf3a63).

Generalizes `melodic-software/provisioning`'s `pr-body.yml` (decisions
#58/#59, already built and verified this session) into a shared reusable
workflow, mirroring `pr-title.yml`'s own history: a repo-specific
implementation first, then a shared workflow other repos call. The
ported logic is verbatim from provisioning's proven, working
implementation — not rewritten — so behavior is identical: a native
closing keyword (`Closes`/`Fixes`/`Resolves #N`, including
`owner/repo#N`, or `"No linked issue"`) plus a non-empty `## Related`
section, with HTML comments stripped first so an unedited PR template
(whose instructional prose lives in comments) fails rather than passing
vacuously.

`provisioning`'s own `pr-body.yml` caller is untouched — its PR predates
this workflow and isn't required to switch; its own file comment already
flagged "wiring it into github-iac's ci-gate ruleset is a follow-up (out
of scope for this repo)", which is exactly the shared-workflow path this
PR opens for every other repo.

**Deliberately not done here**, same shape as WP-2's `do-not-merge-gate`
sequencing: rolling out per-repo callers (up to 9 `requires-ci` repos)
and adding the `pr-issue-linkage / pr-issue-linkage` required check to
`github-iac`'s `ci-gate` ruleset. Both need this PR's merge-commit SHA
to pin to, and the ruleset entry specifically must not land before every
caller exists and reports green, or open PRs across the org block on a
check that never runs. Queued as explicit follow-up work.

## Verification

- New `.github/scripts/pr-issue-linkage.test.cjs`: extracts the inline
`actions/github-script` body (same technique used to verify the
equivalent block ported into medley's `issue-labeling.yml` this session)
and runs it in a `vm` sandbox against 9 cases: closing-keyword variants
(Fixes/Resolves/past-tense/cross-repo), "No linked issue", missing-both
failure naming both problems, an empty Related section, an
unedited-template-still-fails proof, a commented-out closing keyword not
counting, and case-insensitivity. All 9 pass — confirms the ported logic
matches the original byte-for-byte in behavior.
- `actionlint`: clean.
- `markdownlint-cli2`, `lychee --offline`: clean on the README changes.
- `typos`: clean on all 3 files.

Opened as draft — leaving merge-ready work queued for review rather than
merging autonomously.
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