Newline corruption in multi-line secrets (SSH Keys) added via Extension
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, typescript, vscode
调研方向
首先通过 VS Code 的 GitHub Actions > Secrets > Add Secret 流程,使用多行 PEM 密钥重现问题,然后将扩展保存的 secret 的行为与 GitHub web UI 的 workaround 进行比较。跟踪保存 secret 的路径,并验证存储的值保留换行格式,且能在 workflow 中成功完成身份验证。
由索引模型根据 Issue 内容生成。
描述
Multi-line RSA/PEM secrets added via the VS Code extension fail authentication in GitHub Actions. Re-adding the identically pasted content via the GitHub web UI resolves the issue. This suggests the extension may be incorrectly handling or encoding newline characters.
Steps to Reproduce
Copy a valid multi-line PEM SSH key.
In VS Code, navigate to GitHub Actions > Secrets > Add Secret.
Paste the key and save.
Trigger a workflow using the secret (e.g., appleboy/ssh-action).
Expected Behavior
The secret should maintain its original formatting and be valid for SSH authentication.
Actual Behavior
Workflow fails with: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Workaround
Deleting the secret and re-adding it through the GitHub.com web interface works immediately.
Environment
Extension Version: 0.29.1
OS: Linux (WSL2 / Ubuntu 24.04)
- 主要语言
- TypeScript
- 星标
- 661
- 派生
- 214
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/vscode-github-actions 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
github/vscode-github-actions#627 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 20/100
github/vscode-github-actions#630 ·
-
long work 未关闭
难度 4/5 3-5 天 新手友好度 25/100
github/vscode-github-actions#628 ·
-
bug
难度 3/5 1-2 天 新手友好度 55/100
github/vscode-github-actions#625 ·
-
bug
难度 3/5 1-2 天 新手友好度 64/100
github/vscode-github-actions#621 · 3 条评论 ·
查看 github/vscode-github-actions 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug v2
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/inspector#2458 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
难度 2/5 1-3 小时 新手友好度 70/100
carbon-design-system/ibm-products#9907 ·