Document restrictions on start command's first parameter
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, typescript
调研方向
从 start 输入的 action 文档开始,检查 packages/io/src/io.ts 中链接的 @actions/io 源代码,尤其是 io.ts 在第 257-260 行附近的检查。记录第一个 start 参数不能是相对可执行文件路径,并加入 issue 中展示的基于 shell 的变通方案。
由索引模型根据 Issue 内容生成。
描述
I just spent hours scratching my head trying to understand why my server would not start and always get the error:
Unable to locate executable file: [...]
The file is actually there and is executable.
- uses: cypress-io/github-action@v2
env:
[...]
DEBUG: '@cypress/github-action'
with:
[...]
path: e2e
start: ../some/executable/script
It turns out io.which from @actions/io, called by this GitHub action, refuses to parse executable paths from relative script files. I assume this is for security reasons (actual source):
if (tool.includes(path.sep)) {
return []
}
I believe the documentation of start should clearly state that scripts cannot be executed like this.
As a workaround, I ran:
- uses: cypress-io/github-action@v2
env:
[...]
DEBUG: '@cypress/github-action'
with:
[...]
path: e2e
start: sh ../some/executable/script
and it works just fine.
- 主要语言
- JavaScript
- 星标
- 1.5k
- 派生
- 356
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 28
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cypress-io/github-action 的其他 Issue
-
Renovate: lock file maintenance fails in Yarn Modern可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug renovate
难度 2/5 1-3 小时 新手友好度 76/100
cypress-io/github-action#1910 · 3 条评论 ·
维护者通常 1 天内回复
-
renovate
难度 2/5 1-3 小时 新手友好度 48/100
cypress-io/github-action#1911 ·
维护者通常 1 天内回复
-
Yarn v1 Classic unsupported - deprecation is due可能重新可做 @MikeMcC399 于 128 天前认领,目前没有进行中的 PR。 未关闭documentation
cypress-io/github-action#1819 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Migrate to ESM未关闭type: enhancement
难度 5/5 一周以上 新手友好度 35/100
cypress-io/github-action#1647 · 4 条评论 ·
维护者通常 1 天内回复
-
Cypress.env deprecation / cy.env addition可能重新可做 @MikeMcC399 于 63 天前认领,目前没有进行中的 PR。 未关闭tests type: enhancement
cypress-io/github-action#1620 · 8 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 cypress-io/github-action 的全部 Issue
相似的 Issue
-
bug web-ui
难度 2/5 1-3 小时 新手友好度 67/100
jenkinsci/jenkins#27705 · 3 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
maproulette/maproulette-frontend#2978 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
live-codes/livecodes#1079 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
approved check:passed logos:add
难度 1/5 1 小时以内 新手友好度 74/100
维护者通常 2 天内回复