You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clarify vars context availability in composite actions #46232
"Composite actions should leverage inputs to get values they need, they will not have full access to the context objects."
There is also an implementation detail documented by a runner collaborator in actions/runner#4311: variables are filtered based on references made directly in the calling job, so a vars reference used only inside a composite action may not be available to the runner.
Could the composite actions documentation explicitly clarify that values required by a composite action should be passed through inputs, including values originating from vars?
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
Secrets cannot be used in composite actions, and while the documentation for the secrets context explicitly mentions this limitation, the documentation for the vars context does not. Perhaps this is because vars are a newer feature than composite actions.
I want to help other developers avoid repeatedly running into the same issue and wasting time trying to get this to work as they would reasonably expect based on how other parts of GitHub Actions behave
I'm Ima, an aspiring Technical Writer from Nigeria exploring Outreachy and open source documentation.
I read the issue and I see the confusion: the contexts page lists vars as available, but inside composite actions it isn't directly accessible. Users expect vars.AWS_REGION to work inside the composite, but it needs to be passed via inputs.
Would it help if I draft a clarification note for the docs? Something like:
Note on composite actions: The vars context is not directly available inside a composite action. To use a variable, pass it from the calling workflow via inputs. For example, pass region: ${{ vars.AWS_REGION }} as an input, and use ${{ inputs.region }} inside the composite action.
Happy to work on this small docs update if that approach sounds good!
A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.
A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.
Yes, I think this issue is still relevant. I'm waiting for the relevant team to process the documentation..
Activity
welcome commentedon Oct 7, 2026
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
vaclavbarta commentedon Oct 9, 2026
Secrets cannot be used in composite actions, and while the documentation for the
secretscontext explicitly mentions this limitation, the documentation for thevarscontext does not. Perhaps this is becausevarsare a newer feature than composite actions.I want to help other developers avoid repeatedly running into the same issue and wasting time trying to get this to work as they would reasonably expect based on how other parts of GitHub Actions behave
Thanks
subatoi commentedon Oct 12, 2026
Thanks @vaclavbarta — we'll investigate this and pass it to the relevant team for review.
imaloveabra commentedon Oct 14, 2026
Hi team! Thanks for opening this clear issue.
I'm Ima, an aspiring Technical Writer from Nigeria exploring Outreachy and open source documentation.
I read the issue and I see the confusion: the contexts page lists
varsas available, but inside composite actions it isn't directly accessible. Users expectvars.AWS_REGIONto work inside the composite, but it needs to be passed viainputs.Would it help if I draft a clarification note for the docs? Something like:
Note on composite actions: The
varscontext is not directly available inside a composite action. To use a variable, pass it from the calling workflow viainputs. For example, passregion: ${{ vars.AWS_REGION }}as an input, and use${{ inputs.region }}inside the composite action.Happy to work on this small docs update if that approach sounds good!
subatoi commentedon Oct 14, 2026
@imaloveabra We appreciate your enthusiasm but unfortunately we can't accept community contributions until they have a
help wantedlabel. You can read more here: https://github.com/proxy/docs.github.com/en/contributing/collaborating-on-github-docs/about-contributing-to-github-docs#working-on-other-contributors-issuesgithub-actions commentedon Nov 23, 2026
A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.
vaclavbarta commentedon Nov 23, 2026
Yes, I think this issue is still relevant. I'm waiting for the relevant team to process the documentation..