github / github/vscode-github-actions

"Context access might be invalid: workspace"

オープン
#314 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
660
フォーク
213
PR マージ指標
30日以内にマージされた PR はありません

説明

**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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reproducing the warning with the provided workflow YAML and trace the validation for jobs..steps[*].working-directory when it contains runner.workspace. Compare that behavior with the documented working-directory syntax; done means the example produces no warning without weakening validation for other invalid contexts.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github-actions, typescript, vscode
領域
ci-cd, tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。