You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(plugin): read a mirror key pasted with CRLF line ends - #1686
The first Plugin mirror run on main (after #1685) failed with Load key "/home/runner/.ssh/mirror_key": error in libcrypto, then Permission denied (publickey). The deploy key was pasted into PLUGIN_MIRROR_DEPLOY_KEY from Windows, and OpenSSH refuses a key with CRLF line ends. This strips \r before writing the key, and checks it with ssh-keygen -y so an unreadable key fails with a clear message instead of an SSH error.
No actionable comments were generated in the recent review.
Walkthrough
The plugin mirror workflow removes carriage returns from the deploy key before saving it. It validates the saved key with ssh-keygen and exits with an error if validation fails.
Changes: Plugin mirror key handling
Layer / File(s)
Summary
Normalize and validate the deploy key .github/workflows/plugin-mirror.yml
The workflow removes carriage returns from the deploy key before saving it. If ssh-keygen cannot read the key, the workflow reports an error and exits with status 1.
getopenscreen/openscreen#1685: Adds the plugin mirror workflow and the deploy-key secret that this change validates.
Suggested reviewers:claude
Merge Risk: Minimal · up to 5f7b4
The change makes the plugin mirror accept deploy keys pasted with Windows line endings and gives a clear error when the key is unreadable. No merge-blocking risk was found, and the workflow can be confirmed by the next mirror run.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the plugin mirror workflow now reads a deploy key pasted with CRLF line endings. It matches the summary, which strips carriage returns from PLUGIN_MIRROR_DEPLOY_KEY be…
Description check
The description follows the template. It has a Summary that explains the Windows CRLF cause and the ssh-keygen check. It links the work to #1685 with 'Part of #1685', which fits a partial change. It m…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the plugin mirror workflow now reads a deploy key pasted with CRLF line endings. It matches the summary, which strips carriage returns from PLUGIN_MIRROR_DEPLOY_KEY before saving it. The title is specific and follows a conventional commit style.
Full details: Description check
Explanation
The description follows the template. It has a Summary that explains the Windows CRLF cause and the ssh-keygen check. It links the work to #1685 with 'Part of #1685', which fits a partial change. It marks Bug fix, No release note needed, and Not platform-specific. Screenshots are marked not applicable. The Testing section gives only a YAML parse check and defers verification to the next mirror run. It does not name a local test of the key-validation failure path. The template's 'Fixes #' line is replaced by 'Part of #1685', which is acceptable for a partial change.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: df3712a0-1a60-4ea2-accf-1b2c738d0921
Commits
Reviewing files that changed from the base of the PR and between 88cda67 and 5f7b4d0.
Files selected for processing: 1
.github/workflows/plugin-mirror.yml
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
Rust test (macOS compositor) fails on the same audio::tests::a_clipped_voice_exports_under_minus_one_dbtp_and_keeps_what_loudness_it_can fixture as on every PR since yesterday (see #1685). This PR only touches .github/workflows/plugin-mirror.yml, so it is not this PR's.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Etienne · project thread
Summary
The first Plugin mirror run on main (after #1685) failed with
Load key "/home/runner/.ssh/mirror_key": error in libcrypto, thenPermission denied (publickey). The deploy key was pasted intoPLUGIN_MIRROR_DEPLOY_KEYfrom Windows, and OpenSSH refuses a key with CRLF line ends. This strips\rbefore writing the key, and checks it withssh-keygen -yso an unreadable key fails with a clear message instead of an SSH error.Related issue
Part of #1685.
Type of change
Release impact
Desktop impact
Screenshots / video
Not applicable.
Testing
YAML parses. The fix is verified by the next Plugin mirror run on main.
Generated by Claude Code
Summary by CodeRabbit