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(ci): prevent shell injection via version input in cli.test-installation.yml (#3594)
Saransh Ranab2efc824f688
diff --git a/.github/workflows/cli.test-installation.yml b/.github/workflows/cli.test-installation.ymlindex c4a0c5e86..415299174 100644--- a/.github/workflows/cli.test-installation.yml+++ b/.github/workflows/cli.test-installation.yml@@ -97,8 +97,10 @@ jobs:- name: Resolve and validate target releaseid: release_targetshell: bash+ env:+ VERSION_INPUT: ${{ inputs.version }}run: |- raw_input="${{ inputs.version }}"+ raw_input="$VERSION_INPUT"if [[ -z "$raw_input" || "$raw_input" == "latest" ]]; thenecho "use_latest=true" >> "$GITHUB_OUTPUT"echo "release_tag=" >> "$GITHUB_OUTPUT"@@ -194,8 +196,9 @@ jobs:- name: Test install script (specific version)if: steps.release_target.outputs.use_latest != 'true'shell: bash+ env:+ RELEASE_TAG: ${{ steps.release_target.outputs.release_tag }}run: |- RELEASE_TAG="${{ steps.release_target.outputs.release_tag }}"echo "Testing installation with version: ${RELEASE_TAG}"# Test the install script with specific version@@ -370,6 +373,9 @@ jobs:- name: Test custom install directoryshell: bash+ env:+ USE_LATEST: ${{ steps.release_target.outputs.use_latest }}+ RELEASE_TAG: ${{ steps.release_target.outputs.release_tag }}run: |echo "Testing custom install directory..."@@ -378,10 +384,9 @@ jobs:# Test with custom directory using the same version as the workflowexport COMPOSIO_INSTALL_DIR="/tmp/custom-composio"- if [[ "${{ steps.release_target.outputs.use_latest }}" == "true" ]]; then+ if [[ "$USE_LATEST" == "true" ]]; thenbash install.shelse- RELEASE_TAG="${{ steps.release_target.outputs.release_tag }}"bash install.sh "${RELEASE_TAG}"fi