From 2e0769cb2a75d373f2b9b3ed5e8c2c2faf858657 Mon Sep 17 00:00:00 2001 From: Abhinav Prasad Nekkanti <10552725+anekkanti@users.noreply.github.com> Date: Thu, 5 Nov 2026 18:19:52 -0800 Subject: [PATCH] Dispatch clddx-agent with GitHub App token instead of PAT 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 --- .github/workflows/downstream.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index 32d7e12..a2ce63b 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -10,9 +10,18 @@ jobs: dispatch: runs-on: ubuntu-latest steps: + - name: Mint GitHub App token for clddx-agent + id: app-token + uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0 + with: + app-id: ${{ secrets.CLDDX_AGENT_APP_ID }} + private-key: ${{ secrets.CLDDX_AGENT_PRIVATE_KEY }} + owner: temporalio + repositories: clddx-agent + - name: Dispatch clddx-agent env: - GH_TOKEN: ${{ secrets.CLDDX_AGENT_PAT }} + GH_TOKEN: ${{ steps.app-token.outputs.token }} API_TAG: ${{ github.event.release.tag_name }} RELEASE_URL: ${{ github.event.release.html_url }} run: |