Updated strict hostkeys checking logic:
From now on you should use 'known_hosts' input, if you want to enforce explicit strict hostkey checking. Just create a new action secret which contains the explicit known_hosts entry you want this actions rsync-rsh to enforce. Multiple formats are supported.
The deprecated 'strict_hostkeys_checking' input will be a no-op in the next major because it is weak. It relies on ssh-keyscan which is fetching and validating the hostkey, but not verifying it against a user supplied hostkey. This is what the new 'known_hosts' input covers.
You can now control the ssh log-level that is passed via the rsh switch for better logging control.
The default log-level is ERROR (previously it was not set, hence it fallback to INFO).
This further enhances masking when strict_hostkeys_checking is false (default=false), by hiding the warning message.
Github already always masked the host but the algo was still visible.
Before: "Warning: Permanently added '***' (ED25519) to the list of known hosts."
After: hidden (when log_level ERROR, which is the default)
As always, we encourage you to enable strict_hostkeys_checking = true, in order to make a hostkey known to the action beforehand.
* feat: update alpine to 3.24.4, update rsync to 3.5.2-r1, update openssh via edge to version 10.6_p2-r0
* feat: use alpine openssh-client pkg instead of full openssh (server+client pkg)
* Openssh now uses the openssh-client-default package, rather than the full openssh package, because openssh-server and other sub-packages are not needed for this action. This results in better security and faster deployments, since less dependencies are needed.
* openssh-client-default package is using the edge repo now, just like rsync, in order to get the latest alpine security updates for them
* chore: update supported versions in SECURITY.md
* chore: update action version to 9.0.4, also mention new additional channel "latest"
+ Updated Alpine and Rsync versions in README.
+ New release channel available: @latest (always points to latest major, eg. v9, v10, v11....)
Alpine and Rsync have received new updates:
* feat: Update Alpine from 3.24.1 to 3.24.2
Release notes: https://alpinelinux.org/posts/Alpine-3.21.8-3.22.6-3.23.6-3.24.2-released.html
* feat: Update Rsync from 3.5.0 to 3.5.1
Release notes: https://download.samba.org/pub/rsync/NEWS#3.5.1
* feat: install rsync from Alpine edge branch for latest security patches when base branch lacks behind
* chore: Update supported versions in SECURITY.md
* feat: add integration workflow for tests
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: Upgrade Alpine base image to version 3.24.1
* chore: Update supported versions and their statuses
* chore: Update README with new versions and action updates
Updated the README to reflect changes in Alpine and Rsync versions, and updated the action versions from v8 to v9.
* chore: Update Alpine version in README.md
* feat: Update base image to Alpine 3.23.4
Alpine 3.23.4 fixes the following:
musl
CVE-2026-6042
CVE-2026-40200
openssl
CVE-2026-31790
CVE-2026-28387
CVE-2026-28388
CVE-2026-28389
CVE-2026-28390
CVE-2026-31789
* chore: Update supported versions in SECURITY.md
* chore: Update README for Alpine and version changes
* chore: Update copyright years in LICENSE file
Updated copyright years for Joshua Piper and Burnett01.
* chore(deps): bump alpine from 3.23.0 to 3.23.2
Bumps alpine from 3.23.0 to 3.23.2.
---
updated-dependencies:
- dependency-name: alpine
dependency-version: 3.23.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
* chore(docs): update Alpine version to 3.23.2 in README and SECURITY files
* chore(docs): update current version to 8.0.3 in README
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: only attempt to create dir if not yet exists
On self-hosted runners it can happen that an action (docker container) is cached. This leads to the script trying to create the .ssh dir despite it already existing. The action then fails.
* fix: only attempt to create file if it doesn't exist yet
On self-hosted runners it can happen that an action (docker container) is cached, resulting in aborting this script because the know_hosts file already exists.
This if clause fixes it.
Setting permissions is intentionally outside the if clause because in all cases we want to reset perms.
* fix: reverting printf in favor of echo
Like in commit 2c22263 we are using echo again instead of printf because some runners can't function properly with it.
* chore: 8.0.2
* chore: readme changes
It was found via #90 and #89 that using printf causes problems.
In the previous version 7.1.0 we used echo instead of printf - hence we are bringing this back for version 8.0.x
* feat: latest Alpine 3.23.0
* feat: latest Rsync 3.4.1-r1
* feat: integrate [rsync-docker](https://github.com/JoshPiper/rsync-docker/) 3rd party into this action as 1st party code (no more dependency, better audit, single source of truth)
- backported:
- agent-start
- agent-stop
- agent-askpass
- agent-add
- hosts-add
- hosts-clear
- new added:
- ssh-init
- hosts-init
- improved:
- stricter permissions on .ssh/ folder (700) and known_hosts (600)
- use set -eu in all scipts
* feat: new ``strict_host_keys`` option to enable support for strict host key verification. Default: false (to keep backward compatibility)
* feat: new ``debug`` option to see the commands executed (-x) by this action
* feat: this action is now scanned for vulnerabilities by Snyk
* feat; this action is now scanned by CodeQL for Q/A
* feat: this action now performs CI tasks such as Validation, Linting and Unit Tests
* fix: various shell syntax for robustness
* fix: use printf and redirect output to non-stdout instead of echo in sensitive code locations
* refactor: use $HOME instead of tilde ~ for robustness
* feat: cross-platform support
* chore: Deprecate 7.0.2
* chore: EOL 7.0.0 & 7.0.1
* chore: Add comprehensive SSH troubleshooting section to README
* chore: Enhance README with rsync documentation link, SSH key guide
* chore: further enrich readme with more troubleshooting + change secrets name from DEPLOY_* to REMOTE_*
* chore: Added a new section for versions and updated heading formatting.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Burnett01 <1208707+Burnett01@users.noreply.github.com>
Co-authored-by: sovetski