Skip to content

Commit 813b97f

Browse files
ci: write the mirror deploy key with a trailing newline (#1748)
OpenSSH rejects key files without a trailing newline ('error in libcrypto'); the first post-merge run of the mirror sync failed on exactly this. printf %s does not add one. Co-authored-by: kingpanther13 <kingpanther13@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 0d84953 commit 813b97f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/sync-integration-mirror.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
DEPLOY_KEY: ${{ secrets.INTEGRATION_MIRROR_DEPLOY_KEY }}
3030
run: |
3131
mkdir -p ~/.ssh
32-
printf -- "%s" "$DEPLOY_KEY" > ~/.ssh/mirror_key
32+
printf -- "%s\n" "$DEPLOY_KEY" > ~/.ssh/mirror_key
3333
chmod 600 ~/.ssh/mirror_key
3434
ssh-keyscan github.com >> ~/.ssh/known_hosts 2>/dev/null
3535

0 commit comments

Comments
 (0)