Description
After the GitHub Actions runner was updated from 2.332.0 to 2.333.0, composite actions that reference the vars context (e.g. ${{ vars.AWS_REGION }}) now fail at parse time with:
Unrecognized named-value: 'vars'. Located at position 18 within expression: inputs.region || vars.AWS_REGION || 'ap-southeast-2'
This is a regression. The same composite action with the same vars references worked on runner 2.332.0 and fails on 2.333.0.
Reproduction
Composite action (action.yml):
inputs:
region:
description: 'AWS region'
required: false
runs:
using: composite
steps:
- run: echo "$REGION"
env:
REGION: ${{ inputs.region || vars.AWS_REGION || 'ap-southeast-2' }}
Calling workflow:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: my-org/my-action/.github/actions/my-composite@main
with:
region: ap-southeast-2
Expected behaviour
The composite action should resolve vars.AWS_REGION at runtime (as it did on 2.332.0), or at minimum silently fall through to the hardcoded default when the context is unavailable.
Actual behaviour
The runner rejects the template at parse time before any step executes:
##[error] Unrecognized named-value: 'vars'. Located at position 18 within expression: inputs.region || vars.AWS_REGION || 'ap-southeast-2'
Evidence
Two CI runs on the same repository, same workflow, same composite action. The composite action was not modified between runs. The only difference is the runner version:
- Runner 2.332.0: Deploy job succeeds
- Runner 2.333.0: Deploy job fails with the error above
Environment
- Runner 2.332.0: works
- Runner 2.333.0: fails
- OS: ubuntu-24.04 (Image: 20260323.65.1)
Description
After the GitHub Actions runner was updated from
2.332.0to2.333.0, composite actions that reference thevarscontext (e.g.${{ vars.AWS_REGION }}) now fail at parse time with:This is a regression. The same composite action with the same
varsreferences worked on runner2.332.0and fails on2.333.0.Reproduction
Composite action (action.yml):
Calling workflow:
Expected behaviour
The composite action should resolve
vars.AWS_REGIONat runtime (as it did on2.332.0), or at minimum silently fall through to the hardcoded default when the context is unavailable.Actual behaviour
The runner rejects the template at parse time before any step executes:
Evidence
Two CI runs on the same repository, same workflow, same composite action. The composite action was not modified between runs. The only difference is the runner version:
Environment