diff --git a/.github/workflows/test-os-versions.yml b/.github/workflows/test-os-versions.yml index e68faf32..67b5b5c4 100644 --- a/.github/workflows/test-os-versions.yml +++ b/.github/workflows/test-os-versions.yml @@ -46,16 +46,16 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Parse launch arguments - id: parse_launch_args + - name: Parse comment arguments + id: parse_comment_args # Do not use comment body directly in the shell command to avoid possible code injection. env: BODY: ${{ github.event.comment.body }} run: | # extract first line and cut out the "/test-os-versions" first word - LAUNCH_ARGS=$(echo "$BODY" | sed -n '1 s/^[^ ]* *//p' | sed 's/[[:space:]]*$//') - echo "launch arguments are: $LAUNCH_ARGS" - echo "launch_args=${LAUNCH_ARGS}" >> $GITHUB_OUTPUT + ARGS=$(echo "$BODY" | sed -n '1 s/^[^ ]* *//p' | sed 's/[[:space:]]*$//') + echo "comment arguments are: $ARGS" + echo "comment_args=${ARGS}" >> $GITHUB_OUTPUT # check for dry run mode DRY_RUN=False echo "$BODY" | grep -q "/test-os-versions-dry" && DRY_RUN=True @@ -66,8 +66,8 @@ jobs: allowed_user: ${{ steps.check_user_perm.outputs.allowed_user }} base_ref: ${{ fromJson(steps.pr_api.outputs.data).base.ref }} sha: ${{ fromJson(steps.pr_api.outputs.data).head.sha }} - launch_args: ${{ steps.parse_launch_args.outputs.launch_args }} - dry_run: ${{ steps.parse_launch_args.outputs.dry_run }} + comment_args: ${{ steps.parse_comment_args.outputs.comment_args }} + dry_run: ${{ steps.parse_comment_args.outputs.dry_run }} os-version: