New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom ssh key setup to fix actions #1097
Conversation
So it looks like
Into one of our tests, even though it doesn't need the private key. 🤷 . If thats not an option you could untangle the ssh-agent and known hosts bits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if the pipeline passes
Hmmm, its a bit weird, looks like its stuck.. 👀 |
Yeah I was just looking at that but couldnt see why. I just restarted the tests to see if it happens again. |
.github/actions/setup-ssh/action.yml
Outdated
using: "composite" | ||
steps: | ||
- name: Set up ssh | ||
uses: ./.github/actions/setup-ssh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
♾️ !
Co-authored-by: Simon <footless@gmail.com>
Copied the wge one over to see if whitespace issues.. |
* Add custom ssh key setup to fix actions * add ssh key to test.yml * Update .github/actions/setup-ssh/action.yml Co-authored-by: Simon <footless@gmail.com> * formatting? Co-authored-by: Justin Thompson <justin@weave.works> Co-authored-by: Simon <footless@gmail.com>
* Add custom ssh key setup to fix actions * add ssh key to test.yml * Update .github/actions/setup-ssh/action.yml Co-authored-by: Simon <footless@gmail.com> * formatting? Co-authored-by: Justin Thompson <justin@weave.works> Co-authored-by: Simon <footless@gmail.com>
What changed?
Copied over the ssh known_hosts fix from weaveworks/weave-gitops-enterprise#312. This fix is in response to https://github.blog/2021-09-01-improving-git-protocol-security-github/.
How did you test it?
If the pipeline passes its good.