- Notifications
You must be signed in to change notification settings - Fork286
Try running on Windows#17
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Check the environment: Seelukesampson/pshazz#70 (comment) for the startup errors. |
This currently fails with: |
Raynos commentedFeb 5, 2020
It sounds like the error you get is that git is using the builtin ssh and not the windows one that you started. |
Raynos commentedFeb 5, 2020
To me it looks as if it fails on |
The-EG commentedJan 21, 2021
I just got this process working on Windows, similar to how others have, but one thing that hasn't been pointed out: After enabling the service (start=demand), the service needs to be started through Windows, not by running ssh-agent. This is done by running Note that this does not explicitly use a socket file, but it appears that the Windows installation of OpenSSH already knows how to find the ssh-agent if the service is running (ie. |
bldrvnlw commentedJan 29, 2021
I don't know how to translate this into a github-action but the following powershell script got the ssh-agent running on thewindows-2016 image. In my case the goal was to allow deploy-key access to a github repo. ` - name: setup ssh key for rules_support deploy |
@leafac I saw your comment over atvercel/pkg#837. If you have a real Windows use case for this action, could you give this branch a try? |
3b42494 tof6308c4Comparemwik commentedFeb 13, 2021
The docker demo fails because the ubuntu docker image has not ssh installed. So either use a docker image with openssh-client installed or install it in the action with |
leafac commentedFeb 13, 2021
leafac commentedFeb 13, 2021
❤️ |
bldrvnlw commentedFeb 17, 2021
You'll get an "The specified service already exists" error if you try to over install with chocolatey. That makes it rather awkward to use as a no-op, not a cheap one in any case because you would have to build filtering around it. |
Ok, let’s ignore Windows 2016 then. |
gerardsimons commentedFeb 25, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This doesn't work for me on Windows either. It gives me a permission denied error at the last step on windows but not on Ubuntu. I am using a deploy key on the private company repo. Let me know if it's worth making a new issue for this name:CI# Controls when the action will run.on:# Triggers the workflow on push or pull request events but only for the dev branchpush:branches:[ dev ]pull_request:branches:[ dev ]# Allows you to run this workflow manually from the Actions tabworkflow_dispatch:# A workflow run is made up of one or more jobs that can run sequentially or in paralleljobs:# This workflow contains a single job called "build"build:# The type of runner that the job will run onruns-on:windows-latest# The app is intended primarily for Windows# runs-on: ubuntu-latest # Debug; this cannot build windows builds!!!# Steps represent a sequence of tasks that will be executed as part of the jobsteps:# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it -uses:actions/checkout@v2# We depend on another private repo of ours so we need to set up SSH agent with a key -uses:webfactory/ssh-agent@v0.5.0with:ssh-private-key:${{ secrets.SSH_PRIVATE_KEY }} -name:Debugrun:git clone git@github.com:*********.git |
Can you share the Action output/log? |
gerardsimons commentedFeb 26, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Yes sir, I actually made a fresh public repo with this workflow and the same one but on Ubuntu, I also made a private repo with a deploy key. I add the key as a secret. You can see the workflow logs for yourself. Here is theUbuntu one and here is theWindows version. Feel free to mess around with the workflow files and re-run them |
mpdude commentedFeb 26, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Could you make the Windows action run And do you know how to enable SSH verbosity for the I don't think I could edit the workflows and/or make them run, could I? |
I'm experimenting the same issue and since it's also a private repo I can't share much 😅 |
Basically the SSH Agent steps worked and said "Keys added". 👍 but at the next step cargo (Rust) fails to use the key to clone a private dependency. |
Ok, understand. Please at first make sure the agent started in the first step is still alive/running when the next step starts, and that keys are still loaded. Does |
For debugging Git's usage of SSH on Windows: |
Ok I will try all of that but it will probably be on Monday if you don't mind. |
mpdude commentedFeb 26, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I tried with a matrix build in this repo, and yes, it fails – but only when using with deployment keys. https://github.com/webfactory/ssh-agent/runs/1990796091?check_suite_focus=true Unfortunately, I am not familiar with Windows and do not have a direct Windows machine myself, so probably I'd need a little help. Here's my guess what happens: After the keys have been loaded, they are listed with Then, when connecting, this file is used as the Under Linux, this file can contain thepublic key part (from the Could somebody please try if the SSH Agent on Windows works the same way? Can aprivate key be loaded from the agent by providing thepublic key part through the |
leafac commentedFeb 27, 2021
It appears that the answer is negative: N.B.: I have 2 days of experience with Windows, so the test above may not make sense. I’m used to macOS/Linux, but was tired of having my stuff breaking on Windows and having to use VirtualBox to figure it out, so last weekend I bought a PC for this kind of investigation. |
mpdude commentedFeb 27, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
adonisj910 commentedMar 1, 2021
👍 |
sfullerbeckman commentedOct 12, 2022
I am seeing errors when trying to load multiple private keys on windows-2019. Please see these issues.#130 andhttps://github.com/actions/checkout/discussions/928 |
Totally forgot to answer here sorry! And I don't remember exactly what issue I had... It seems what you did fixed it for me |
Boscop commentedFeb 7, 2023
Hm, it doesn't seem to work for me, running on build:strategy:matrix:include: -os:macos-latest -os:ubuntu-latest -os:windows-latestruns-on:${{ matrix.os }}steps: -uses:actions/checkout@v3 -uses:webfactory/ssh-agent@v0.7.0with:ssh-private-key:${{ secrets.SSH_PRIVATE_KEY }} -run:cargo build --release# ... It invokes Rust's cargo build tool to build a binary from the current repo. Note: By default, cargo uses the git library that it's linked to, to download repos. But when setting Btw, the output of the Any idea why |
Edua420 commentedMay 13, 2023
Banca móvil |
PJKuyten commentedNov 7, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
For me v0.8.0 fails on our private github runner on the Windows build. It works correctly on our Linux build (under wsl). The issue is that for some reason in our Windows build it is not able to clone the linked private repo because "Host key verification failed". I've tried multiple things suggested, including updating OpenSSH on the Windows side to the latest beta release, but nothing helped. After switching to v0.7.0 both the Windows and the Linux builds now work as intended. So I don't know what changed between v0.7.0 and v0.8.0 but for me it regressed the Windows side of things to the point that it has become unusable. |
ultimaweapon commentedDec 12, 2023
I also having the same issue as@PJKuyten. Downgrade to 0.7.0 fix the issue. |
rekire commentedMar 12, 2024
Downgrading von 0.9.0 to 0.7.0 worked for me as well |
bigbadrat commentedNov 19, 2024
What is the status of this action for windows runners? I have no problem in linux-latest and macos-latest runners, but windows-latest show all kind of weird issues when trying to setup the ssh connection. I have tried some workarounds that seem to work one time, and then they fail and i'm unsure how to continue so i would greatly appreciante any help |
Uh oh!
There was an error while loading.Please reload this page.
This improves home directory detection to make the action work for Windows and container-based workflows.
Windows-based workflows also need an additional command to start the
ssh-agent.Resolves#15,resolves#20,resolves#55,resolves#58.