ci: Sanitize inputs before passing them to bash in test-evals-ai (#31348)

This commit is contained in:
Matsu
2026-05-29 12:32:41 +00:00
committed by GitHub
parent 58155cefa7
commit 94f463ad28
+7 -3
View File
@@ -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