github / github/vscode-github-actions
Newline corruption in multi-line secrets (SSH Keys) added via Extension
- Vorherrschende Sprache
- TypeScript
- Sterne
- 660
- Forks
- 213
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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)
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Problem über den VS Code-Ablauf GitHub Actions > Secrets > Add Secret mit einem mehrzeiligen PEM-Schlüssel zu reproduzieren, und vergleiche dann das Verhalten des von der Erweiterung gespeicherten Secrets mit dem Workaround in der GitHub-Weboberfläche. Verfolge den Pfad zum Speichern des Secrets und überprüfe, dass der gespeicherte Wert die Zeilenumbruchformatierung beibehält und sich in einem Workflow erfolgreich authentifiziert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github-actions, typescript, vscode
- Bereich
- ci-cd, devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100