Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix: address audit findings in docs sync workflows
Sushmitha Mallesh59f5a0aae510
diff --git a/.github/workflows/docs.sdk-change-sync.yml b/.github/workflows/docs.sdk-change-sync.ymlindex bf31f4a18..8b3b62574 100644--- a/.github/workflows/docs.sdk-change-sync.yml+++ b/.github/workflows/docs.sdk-change-sync.yml@@ -16,7 +16,6 @@ jobs:permissions:contents: writepull-requests: write- id-token: writesteps:- name: Checkout repository@@ -30,18 +29,22 @@ jobs:BEFORE: ${{ github.event.before }}AFTER: ${{ github.event.after }}run: |- DIFF=$(git diff "$BEFORE".."$AFTER" -- \+ if [[ "$BEFORE" =~ ^0+$ ]]; then+ echo "First push or force-push — diffing against HEAD~1"+ BEFORE=$(git rev-parse HEAD~1)+ fi++ git diff "$BEFORE".."$AFTER" -- \ts/packages/core/src/ \ts/packages/cli/src/ \ts/packages/providers/*/src/ \- python/composio/)+ python/composio/ > /tmp/sdk-diff.patch- if [ -z "$DIFF" ]; then+ if [ ! -s /tmp/sdk-diff.patch ]; thenecho "has_changes=false" >> $GITHUB_OUTPUTelseecho "has_changes=true" >> $GITHUB_OUTPUT- echo "$DIFF" > /tmp/sdk-diff.patch- echo "$(echo "$DIFF" | wc -l) lines of SDK changes"+ echo "$(wc -l < /tmp/sdk-diff.patch) lines of SDK changes"fi- name: Check docs for stalenessdiff --git a/.github/workflows/docs.sync-connect-clients.yml b/.github/workflows/docs.sync-connect-clients.ymlindex b4e2b8c5c..4caf0551a 100644--- a/.github/workflows/docs.sync-connect-clients.yml+++ b/.github/workflows/docs.sync-connect-clients.yml@@ -12,7 +12,6 @@ jobs:permissions:contents: writepull-requests: write- id-token: writesteps:- name: Checkout repository@@ -28,7 +27,12 @@ jobs:DASHBOARD_TAG: ${{ github.event.client_payload.dashboard_tag }}GH_TOKEN: ${{ secrets.CI_BOT_TOKEN }}run: |+ set -eif [ "$EVENT_NAME" = "repository_dispatch" ]; then+ if [ -z "$CLIENT_DEFINITIONS" ]; then+ echo "::error::repository_dispatch payload missing client_definitions"+ exit 1+ fiecho "$CLIENT_DEFINITIONS" | base64 -d > /tmp/client-definitions.tsecho "Received client-definitions.ts from dashboard deploy (tag: $DASHBOARD_TAG)"else@@ -37,6 +41,11 @@ jobs:repos/ComposioHQ/composio_dashboard/contents/src/app/\(connect\)/\[org\]/~/connect/clients/_components/client-definitions.ts?ref=main \--jq '.content' | base64 -d > /tmp/client-definitions.tsfi++ if [ ! -s /tmp/client-definitions.ts ]; then+ echo "::error::client-definitions.ts is empty"+ exit 1+ fiecho "$(wc -l < /tmp/client-definitions.ts) lines"- name: Sync Connect clients