@devries-cameron20 / composio-1 / commits / a9b948bac
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(ci): use app token for SDK docs PRs (#3577)

This PR: - fixes https://github.com/ComposioHQ/composio/actions/runs/27606982132/job/81621371312 - mints the existing release-bot GitHub App token in both SDK docs jobs - passes the App token to checkout and `peter-evans/create-pull-request` - uses the same App token for the reviewer-assignment `gh pr edit` step - keeps the TypeScript and Python docs generation commands unchanged Verification: - `git diff --check` - `ruby -e \"require 'yaml'; YAML.load_file('.github/workflows/generate-sdk-docs.yml'); puts 'yaml ok'\"` - `bash .github/scripts/check-action-repos.sh` - confirmed `RELEASE_BOT_APP_ID` and `RELEASE_BOT_APP_PRIVATE_KEY` exist in repo secrets

Alberto Schiabel committed Jun 16, 2026 at 13:24 UTC a9b948bac230dbd033238bf687bd5304d72b884b
1 file changed +22 -2
.github/workflows/generate-sdk-docs.yml
+22 -2
@@ -21,8 +21,17 @@ jobs:
21 pull-requests: write
22
23 steps:
24 + - name: Generate GitHub App token
25 + id: app-token
26 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
27 + with:
28 + app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
29 + private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
30 +
31 - name: Checkout Code
32 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
33 + with:
34 + token: ${{ steps.app-token.outputs.token }}
35
36 - name: Setup Node.js, pnpm, Bun
37 uses: ./.github/actions/setup-node-pnpm-bun
@@ -35,6 +44,7 @@ jobs:
44 id: create-pr
45 uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
46 with:
47 + token: ${{ steps.app-token.outputs.token }}
48 commit-message: 'docs: auto-generate TypeScript SDK reference'
49 title: 'docs: update TypeScript SDK reference from source'
50 body: |
@@ -49,7 +59,7 @@ jobs:
59 - name: Request review from pusher
60 if: steps.create-pr.outputs.pull-request-number
61 env:
52 - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62 + GH_TOKEN: ${{ steps.app-token.outputs.token }}
63 PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
64 AUTHOR: ${{ github.actor }}
65 run: gh pr edit "$PR_NUMBER" --add-reviewer "$AUTHOR"
@@ -61,8 +71,17 @@ jobs:
71 pull-requests: write
72
73 steps:
74 + - name: Generate GitHub App token
75 + id: app-token
76 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
77 + with:
78 + app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
79 + private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
80 +
81 - name: Checkout Code
82 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
83 + with:
84 + token: ${{ steps.app-token.outputs.token }}
85
86 - name: Setup Python with UV
87 uses: ./.github/actions/setup-python-uv
@@ -73,6 +92,7 @@ jobs:
92 id: create-pr
93 uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
94 with:
95 + token: ${{ steps.app-token.outputs.token }}
96 commit-message: 'docs: auto-generate Python SDK reference'
97 title: 'docs: update Python SDK reference from source'
98 body: |
@@ -87,7 +107,7 @@ jobs:
107 - name: Request review from pusher
108 if: steps.create-pr.outputs.pull-request-number
109 env:
90 - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110 + GH_TOKEN: ${{ steps.app-token.outputs.token }}
111 PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
112 AUTHOR: ${{ github.actor }}
113 run: gh pr edit "$PR_NUMBER" --add-reviewer "$AUTHOR"