github / github/vscode-github-actions

Newline corruption in multi-line secrets (SSH Keys) added via Extension

未關閉
#566 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
TypeScript
星號
660
分支
213
PR 合併指標
30 天內沒有已合併 PR

描述

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)

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing the problem through VS Code's GitHub Actions > Secrets > Add Secret flow with a multi-line PEM key, then compare the extension's saved secret behavior with the GitHub web UI workaround. Trace the secret-save path and verify that the stored value preserves newline formatting and authenticates successfully in a workflow.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
github-actions, typescript, vscode
領域
ci-cd, devtools
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。