Composite actions can't see or use org or repo vars
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 1.4k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 24
Description
Describe the bug
Composite actions can't see org or repo vars.
To Reproduce
Steps to reproduce the behavior:
- Create a composite action
- Use the vars context somewhere.
- Use composite action
- See error Unrecognized named-value: 'vars'.
Expected behavior
Expected composite actions to be able to read org/repo variables.
Runner Version and Platform
Ubuntu latest.
OS of the machine running the runner? Ubuntu
What's not working?
Error: /runner/_work/xxx/xxx/./scripts/github-actions/deploy/exec-deployment/action.yml (Line: 34, Col: 11): Unrecognized named-value: 'vars'. Located at position 29 within expression: env.ENV != 'prod' && !vars.ALLOW
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure in the composite action at scripts/github-actions/deploy/exec-deployment/action.yml, especially the vars expression reported at line 34, using an Ubuntu runner. Trace how the runner evaluates vars in composite actions; done means org and repository variables can be read there without the Unrecognized named-value error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, github-actions
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100