Skip to content

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(docs): use app token for SDK docs sync PRs (#3706)

Alberto Schiabel9bd600a9a262
diff --git a/.github/workflows/docs.sdk-change-sync.yml b/.github/workflows/docs.sdk-change-sync.yml
index 394c8c154..cccec4466 100644
--- a/.github/workflows/docs.sdk-change-sync.yml
+++ b/.github/workflows/docs.sdk-change-sync.yml
@@ -20,9 +20,17 @@ jobs:
id-token: write
steps:
+ - name: Generate GitHub App token
+ id: app-token
+ uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
+ with:
+ client-id: ${{ vars.RELEASE_BOT_CLIENT_ID }}
+ private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
+
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
+ token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0
- name: Get SDK diff
@@ -76,6 +84,7 @@ jobs:
if: steps.diff.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
+ token: ${{ steps.app-token.outputs.token }}
commit-message: 'docs: update guides for SDK changes'
title: 'docs: update guides for SDK changes'
body: |
@@ -97,8 +106,9 @@ jobs:
- name: Request review from pusher
if: steps.create-pr.outputs.pull-request-number
+ continue-on-error: true
env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_TOKEN: ${{ steps.app-token.outputs.token }}
PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
AUTHOR: ${{ github.actor }}
run: gh pr edit "$PR_NUMBER" --add-reviewer "$AUTHOR"