Skip to content

Unexpected syntax errors when parsing action.yml – unquoted shell parameter expansion in runner? #26843

Answered by bewuethr
bewuethr asked this question in Actions
Discussion options

You must be logged in to vote

There indeed was an unquoted expansion, but I caused it myself… the composite run steps action had this runs value:

runs:
  using: composite
  steps:
    - run: |
        $GITHUB_ACTION_PATH/prtodolist \
            ${{ inputs.header }} \
            ${{ inputs.footer }}

which should quote the parameters:

runs:
  using: composite
  steps:
    - run: |
        "$GITHUB_ACTION_PATH/prtodolist" \
            "${{ inputs.header }}" \
            "${{ inputs.footer }}"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bewuethr
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant