@devries-cameron20 / composio Mirror · read-only / commits / 9bd600a9a
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 19:45 UTC

fix(docs): use app token for SDK docs sync PRs (#3706)

This PR: - fixes the `Docs - Sync guides on SDK changes` workflow failure from https://github.com/ComposioHQ/composio/actions/runs/28332657149/job/83933412114 - mints the existing release-bot GitHub App token before checkout - uses that token for checkout, `peter-evans/create-pull-request`, and reviewer requests - keeps reviewer assignment non-blocking so a successful docs PR is not failed by reviewer-request edge cases - verifies the workflow file with `ruby -e 'require "yaml"; YAML.load_file(ARGV.fetch(0)); puts "yaml ok"' .github/workflows/docs.sdk-change-sync.yml`, `mise exec -- pnpm exec prettier --check .github/workflows/docs.sdk-change-sync.yml`, and `git diff --check -- .github/workflows/docs.sdk-change-sync.yml`

Alberto Schiabel committed Jun 29, 2026 at 12:34 UTC 9bd600a9a262095cbf4befce21d4c84d9e5d756d
1 file changed +11 -1
.github/workflows/docs.sdk-change-sync.yml
+11 -1
@@ -20,9 +20,17 @@ jobs:
20 id-token: write
21
22 steps:
23 + - name: Generate GitHub App token
24 + id: app-token
25 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
26 + with:
27 + client-id: ${{ vars.RELEASE_BOT_CLIENT_ID }}
28 + private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
29 +
30 - name: Checkout repository
31 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
32 with:
33 + token: ${{ steps.app-token.outputs.token }}
34 fetch-depth: 0
35
36 - name: Get SDK diff
@@ -76,6 +84,7 @@ jobs:
84 if: steps.diff.outputs.has_changes == 'true'
85 uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
86 with:
87 + token: ${{ steps.app-token.outputs.token }}
88 commit-message: 'docs: update guides for SDK changes'
89 title: 'docs: update guides for SDK changes'
90 body: |
@@ -97,8 +106,9 @@ jobs:
106
107 - name: Request review from pusher
108 if: steps.create-pr.outputs.pull-request-number
109 + continue-on-error: true
110 env:
101 - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111 + GH_TOKEN: ${{ steps.app-token.outputs.token }}
112 PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
113 AUTHOR: ${{ github.actor }}
114 run: gh pr edit "$PR_NUMBER" --add-reviewer "$AUTHOR"