github / github/vscode-github-actions

"Context access might be invalid: workspace"

未关闭
#314 2 条评论 0 个 reaction 已指派 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.

贡献指南

打开贡献指南

调研方向

首先,使用提供的 workflow YAML 重现该警告,并跟踪 jobs.\u003cjob_id\u003e.steps[*].working-directory 包含 runner.workspace 时的验证过程。将该行为与文档中说明的 working-directory 语法进行比较;完成标准是示例不产生警告,同时不削弱对其他无效上下文的验证。

由索引模型根据 Issue 内容生成。

评估

技术栈
github-actions, typescript, vscode
领域
ci-cd, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。