Skip to content

Dispatch clddx-agent with GitHub App token instead of PAT - #141

Merged
anekkanti merged 2 commits into
mainfrom
abhinav/clddx-github-app
Nov 6, 2026
Merged

anekkanti merged 2 commits into
mainfrom
abhinav/clddx-github-app

Conversation

@anekkanti

@anekkanti anekkanti commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Mint a short-lived installation token for temporalio/clddx-agent via actions/create-github-app-token (pinned to the same SHA clddx-agent uses).
  • Use it as GH_TOKEN for the repository_dispatch call, replacing secrets.CLDDX_AGENT_PAT.

Companion to temporalio/clddx-agent#26, which drops the PAT fallback on the agent side.

Before merging

  • CLDDX_AGENT_APP_ID / CLDDX_AGENT_PRIVATE_KEY must be accessible to this repo (org secrets with this repo granted access).
  • The App must be installed on temporalio/clddx-agent with Contents: write (required for repository_dispatch).

After merging

  • Delete the repo-level CLDDX_AGENT_PAT secret once a dispatch has gone through.

🤖 Generated with Claude Code


Note

Medium Risk
CI authentication change: wrong secrets, App install, or permissions would break downstream repository_dispatch on release with no fallback PAT.

Overview
Release dispatch now uses a short-lived GitHub App token instead of a repo PAT.

The downstream workflow adds a step that mints an installation token with actions/create-github-app-token (pinned to the same SHA as clddx-agent), scoped to temporalio/clddx-agent. The dispatch step sets GH_TOKEN from that token output instead of secrets.CLDDX_AGENT_PAT.

After merge, org secrets CLDDX_AGENT_APP_ID and CLDDX_AGENT_PRIVATE_KEY must be available here, the App must be installed on that repo with sufficient permissions, and the old PAT secret can be removed once a successful dispatch has run.

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

Mint a short-lived clddx-agent installation token via
actions/create-github-app-token and drop the CLDDX_AGENT_PAT secret.
Companion to temporalio/clddx-agent#26.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anekkanti
anekkanti requested a review from a team as a code owner November 6, 2026 02:19
@anekkanti
anekkanti requested a review from a team as a code owner November 6, 2026 15:27
@anekkanti
anekkanti merged commit ffe06c2 into main Nov 6, 2026
5 checks passed
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.

2 participants