From 94f463ad28bc77dd7d76f3fc594b63ba261c026a Mon Sep 17 00:00:00 2001 From: Matsu Date: Fri, 29 May 2026 15:32:41 +0300 Subject: [PATCH] ci: Sanitize inputs before passing them to bash in test-evals-ai (#31348) --- .github/workflows/test-evals-ai.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-evals-ai.yml b/.github/workflows/test-evals-ai.yml index 95f5a3ff10b..40c3d96d1a6 100644 --- a/.github/workflows/test-evals-ai.yml +++ b/.github/workflows/test-evals-ai.yml @@ -110,6 +110,10 @@ jobs: steps: - name: Set configuration based on trigger id: config + env: + BRANCH: ${{ inputs.branch || 'master' }} + SPEC_REPETITIONS: ${{ inputs.spec_repetitions || '1' }} + SPEC_JUDGES: ${{ inputs.spec_judges || '1' }} run: | EVENT_NAME="${{ github.event_name }}" @@ -124,9 +128,9 @@ jobs: else # Manual dispatch: use provided values for spec evals { - echo "branch=${{ inputs.branch || 'master' }}" - echo "spec_repetitions=${{ inputs.spec_repetitions || '1' }}" - echo "spec_judges=${{ inputs.spec_judges || '1' }}" + echo "branch=$BRANCH" + echo "spec_repetitions=$SPEC_REPETITIONS" + echo "spec_judges=$SPEC_JUDGES" echo "experiment_prefix=CI_manual" } >> "$GITHUB_OUTPUT" fi