@devries-cameron20 / composio Mirror · read-only / commits / 2dadc7bcd
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 22, 03:15 UTC

fix: prevent script injection via client_payload in sync workflow

Pass repository_dispatch payload values through env variables instead of inline ${{ }} expansion in run: blocks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 13, 2026 at 17:43 UTC 2dadc7bcdec51eacd699f2d90a3e5d8f2e37c276
1 file changed +9 -4
.github/workflows/docs.sync-connect-clients.yml
+9 -4
@@ -22,13 +22,18 @@ jobs:
22 fetch-depth: 1
23
24 - name: Get client definitions
25 + env:
26 + EVENT_NAME: ${{ github.event_name }}
27 + CLIENT_DEFINITIONS: ${{ github.event.client_payload.client_definitions }}
28 + DASHBOARD_TAG: ${{ github.event.client_payload.dashboard_tag }}
29 + GH_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
30 run: |
26 - if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
27 - echo "${{ github.event.client_payload.client_definitions }}" | base64 -d > /tmp/client-definitions.ts
28 - echo "Received client-definitions.ts from dashboard deploy (tag: ${{ github.event.client_payload.dashboard_tag }})"
31 + if [ "$EVENT_NAME" = "repository_dispatch" ]; then
32 + echo "$CLIENT_DEFINITIONS" | base64 -d > /tmp/client-definitions.ts
33 + echo "Received client-definitions.ts from dashboard deploy (tag: $DASHBOARD_TAG)"
34 else
35 echo "Manual trigger — fetching from dashboard repo"
31 - GH_TOKEN="${{ secrets.CI_BOT_TOKEN }}" gh api \
36 + gh api \
37 repos/ComposioHQ/composio_dashboard/contents/src/app/\(connect\)/\[org\]/~/connect/clients/_components/client-definitions.ts?ref=main \
38 --jq '.content' | base64 -d > /tmp/client-definitions.ts
39 fi