github / github/vscode-github-actions

"Context access might be invalid: workspace"

Open
#314 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
660
Forks
213
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

If a workflow YAML has `${{runner.workspace}}` value for the key [`jobs..steps[*].working-directory`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsworking-directory) it triggers the warning in the issue description.

**To Reproduce**

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

**Expected behavior**

No warning.

**Screenshots**

![kép](https://github.com/github/vscode-github-actions/assets/9763499/aa36fa1b-ebc9-4b7d-95e7-880d4a10c663)

**Extension Version**

`v0.26.2`

**Additional context**

None.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.