Skip to content
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

Merged
merged 4 commits into from Nov 18, 2021
Merged

Add custom ssh key setup to fix actions #1097

merged 4 commits into from Nov 18, 2021

Conversation

J-Thompson12
Copy link
Contributor

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.

@foot
Copy link
Contributor

foot commented Nov 18, 2021

So it looks like test also needs the known_hosts adjustment. We copied the whole:

- name: Set up ssh
    uses: ./.github/actions/setup-ssh
    with:
      ssh-private-key: ${{ inputs.github-key }}

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.

Copy link
Contributor

@foot foot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🙌

Copy link
Contributor

@jpellizzari jpellizzari left a 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

@foot
Copy link
Contributor

foot commented Nov 18, 2021

Hmmm, its a bit weird, looks like its stuck.. 👀

@J-Thompson12
Copy link
Contributor Author

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.

using: "composite"
steps:
- name: Set up ssh
uses: ./.github/actions/setup-ssh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♾️ !

J-Thompson12 and others added 2 commits November 18, 2021 10:22
Co-authored-by: Simon <footless@gmail.com>
@foot
Copy link
Contributor

foot commented Nov 18, 2021

Copied the wge one over to see if whitespace issues..

@J-Thompson12 J-Thompson12 merged commit 0ae045d into main Nov 18, 2021
jpellizzari pushed a commit that referenced this pull request Nov 18, 2021
* 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>
joshri pushed a commit that referenced this pull request Nov 19, 2021
* 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>
@J-Thompson12 J-Thompson12 deleted the fix-ssh branch February 11, 2022 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants