Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Context access might be invalid: workspace" #314

Open
MathiasMagnus opened this issue Apr 11, 2024 · 2 comments
Open

"Context access might be invalid: workspace" #314

MathiasMagnus opened this issue Apr 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@MathiasMagnus
Copy link

Describe the bug

If a workflow YAML has ${{runner.workspace}} value for the key jobs.<job_id>.steps[*].working-directory it triggers the warning in the issue description.

To Reproduce

- name: Test
  working-directory: ${{runner.workspace}}/OpenCL-Headers/build

Expected behavior

No warning.

Screenshots

kép

Extension Version

v0.26.2

Additional context

None.

@MathiasMagnus MathiasMagnus added the bug Something isn't working label Apr 11, 2024
@muzimuzhi
Copy link

muzimuzhi commented Apr 11, 2024

runner.workspace is (now) an undocumented context property.

From the source file of Contexts docs,

{%- comment %}
The `runner.workspace` property is purposefully not documented. It is an early Actions property that now isn't relevant for users, compared to `github.workspace`. It is kept around for compatibility.
| `runner.workspace` | `string` | |
{%- endcomment %}

Maybe you can use github.workspace instead. Note runner.workspace and github.workspace are slightly different, see for example actions/runner#728.

@MathiasMagnus
Copy link
Author

We specifically have to use that because of the subtle difference. We use custom images in GA and this variable resolves to the correct folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog 🗒
Development

No branches or pull requests

2 participants