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: prevent script injection via client_payload in docs-update-data

Sushmitha Mallesh52071785b39c
diff --git a/.github/workflows/docs-update-data.yml b/.github/workflows/docs-update-data.yml
index e9d2eca9a..73090dcb4 100644
--- a/.github/workflows/docs-update-data.yml
+++ b/.github/workflows/docs-update-data.yml
@@ -24,12 +24,16 @@ jobs:
uses: actions/checkout@v6
- name: Log trigger source
+ env:
+ EVENT_NAME: ${{ github.event_name }}
+ HERMES_COMMIT: ${{ github.event.client_payload.hermes_commit }}
+ DEPLOY_TIMESTAMP: ${{ github.event.client_payload.timestamp }}
run: |
- echo "Workflow triggered by: ${{ github.event_name }}"
- if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
+ echo "Workflow triggered by: $EVENT_NAME"
+ if [ "$EVENT_NAME" = "repository_dispatch" ]; then
echo "Triggered by Apollo production deployment"
- echo "Hermes commit: ${{ github.event.client_payload.hermes_commit }}"
- echo "Timestamp: ${{ github.event.client_payload.timestamp }}"
+ echo "Hermes commit: $HERMES_COMMIT"
+ echo "Timestamp: $DEPLOY_TIMESTAMP"
fi
- name: Setup Bun