Composite actions can't see or use org or repo vars
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
We encountered this issue as well. Is there a suggested workaround?
Really hard to understand why it behaves this way. For now my workflow config has to be in repo secrets I guess.
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 15 days.
This is still an issue. Our solution was to stop using custom composite actions altogether, although this issue was not the only reason for that.