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
When using the pythonLocation environment variable set by the actions/setup-python action, this extension reports "Context access might be invalid" even though it is a valid environment variable documented in the official setup-python action.
The pythonLocation environment variable, which is documented and valid when using actions/setup-python, should be recognized properly by this extension.
Screenshots
If applicable, include screenshots of the warning in the Problems panel.
In my understanding, currently vscode-github-actions only lint inputs and outputs recorded in action.yml of an action (see the action.yml of setup-python action), hence it has no knowledge about what environment variables and dynamic outputs are set.
Thanks for clarification, this limitation makes sense. I found a workaround to address this issue: explicitly setting pythonLocation as a workflow environment variable within the env block for steps that use it:
Describe the bug
When using the
pythonLocation
environment variable set by theactions/setup-python
action, this extension reports "Context access might be invalid" even though it is a valid environment variable documented in the official setup-python action.To Reproduce
Steps to reproduce the behavior:
With this workflow:
Open the "Problems" panel in VS Code.
See the error:
Expected behavior
The
pythonLocation
environment variable, which is documented and valid when usingactions/setup-python
, should be recognized properly by this extension.Screenshots
If applicable, include screenshots of the warning in the Problems panel.
Extension Version
vX.Y.Z
Additional context
pythonLocation
variable: [setup-python environment variables](https://github.com/actions/setup-python#outputs-and-environment-variables).The text was updated successfully, but these errors were encountered: