github / github/vscode-github-actions
Newline corruption in multi-line secrets (SSH Keys) added via Extension
- Linguagem predominante
- TypeScript
- Estrelas
- 660
- Forks
- 213
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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)
Guia de contribuição
Direção de pesquisa
Comece reproduzindo o problema pelo fluxo do VS Code GitHub Actions > Secrets > Add Secret com uma chave PEM de várias linhas; depois, compare o comportamento do secret salvo pela extensão com a solução alternativa da interface web do GitHub. Rastreie o caminho de salvamento do secret e verifique se o valor armazenado preserva a formatação das quebras de linha e autentica com sucesso em um workflow.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- github-actions, typescript, vscode
- Domínio
- ci-cd, devtools
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 42/100