GitHub Action to setup `ssh-agent` with a private key
This release updates the action to run on Node.js v20. When you're running on GitHub hosted runners, just go ahead and update. When you're using self-hosted runners, please make sure you have Node.js v20 installed before updating from v0.8.0
to v0.9.0
of this action.
Full Changelog: https://github.com/webfactory/ssh-agent/compare/v0.8.0...v0.9.0
actions/checkout
to v4 by @felix-seifert in https://github.com/webfactory/ssh-agent/pull/199
Full Changelog: https://github.com/webfactory/ssh-agent/compare/v0.8.0...v0.9.0
Starting with this release, this action no longer writes GitHub's SSH host keys into the known_hosts
SSH config file upon start.
GitHub changed their host keys on short notice this morning, see https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/. We took this as an opportunity to stop maintaining GH SSH keys in the code shipped with this action (#171).
What you need to do:
github.com
) maintained by directly by GitHub.known_hosts
file:
github.com
, as described in #106. Remove these entries.v0.8.0
of this action here are run on the self-hosted runner, the old entries will come back. Keep an eye on it, possibly you'll have to rinse & repeat.actions/checkout@v3
by @mpdude in https://github.com/webfactory/ssh-agent/pull/143
git
, ssh-agent
, and ssh-add
by @DilumAluthge in https://github.com/webfactory/ssh-agent/pull/154
Full Changelog: https://github.com/webfactory/ssh-agent/compare/v0.7.0...v0.8.0
Being the second release today, this version adds a new action input to turn off logging public key identities (#122). Additionally, Windows-based runners should work again (#137, #140) and a nonsensical log message that confused many users was fixed (#139).
Thanks to everyone involved!
Full Changelog: https://github.com/webfactory/ssh-agent/compare/v0.6.0...v0.7.0
The main change in this release is that it updates from using Node v12 to Node v16. This addresses a deprecation notice / phase-out of Node v12 in GitHub Actions. See https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/).
Full Changelog: https://github.com/webfactory/ssh-agent/compare/v0.5.4...v0.6.0
The most important change in this release is the update of the SSH Host Keys used by GitHub.com (#102, #101).
In case you'd like to verify the keys, see https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints.
This release makes sure that the ssh-agent is actually terminated after workflow runs, and that this also happens on workflow failure.
Fixes that repository URLs (for deploy keys) were only recognized when written in lower case.
This release switches to using the ssh-agent
and ssh-add
binaries provided with Git for Windows (#63). These versions of the SSH binaries are based on a newer version of OpenSSH than the versions included in Windows natively. Deploy key support is not possible with the native versions.
This release brings a few exciting improvements 🙌🏻.
Of course, since this is a rather new feature, expect some rough edges and feel free to open issues for problems you encounter.
Mapping of keys to appropriate repositories happens through key comments. See the README file for more details.
Thanks 💚 to everyone involved in the discussions, for coming up with pull requests, for making suggestions and testing things.
This release addresses https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ by updating @actions/core
.