@devries-cameron20 / composio-1 / commits / 52071785b
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.

fix: prevent script injection via client_payload in docs-update-data

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:44 UTC 52071785b39c1d2912332b0d64ce01ff317abfa1
1 file changed +8 -4
.github/workflows/docs-update-data.yml
+8 -4
@@ -24,12 +24,16 @@ jobs:
24 uses: actions/checkout@v6
25
26 - name: Log trigger source
27 + env:
28 + EVENT_NAME: ${{ github.event_name }}
29 + HERMES_COMMIT: ${{ github.event.client_payload.hermes_commit }}
30 + DEPLOY_TIMESTAMP: ${{ github.event.client_payload.timestamp }}
31 run: |
28 - echo "Workflow triggered by: ${{ github.event_name }}"
29 - if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
32 + echo "Workflow triggered by: $EVENT_NAME"
33 + if [ "$EVENT_NAME" = "repository_dispatch" ]; then
34 echo "Triggered by Apollo production deployment"
31 - echo "Hermes commit: ${{ github.event.client_payload.hermes_commit }}"
32 - echo "Timestamp: ${{ github.event.client_payload.timestamp }}"
35 + echo "Hermes commit: $HERMES_COMMIT"
36 + echo "Timestamp: $DEPLOY_TIMESTAMP"
37 fi
38
39 - name: Setup Bun