mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #191] The lack of a known_hosts leads to hanging when checking authenticity of git host #129
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @seve on GitHub (Apr 13, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/191
When running the following lines on a job I have:
I receive the following output:
and then the process hangs, I believe because I can't answer the prompt that follows asking if I should trust the remote.
@seve commented on GitHub (Apr 13, 2020):
Is there a way of copying a known_hosts file to the container?
@Scotchester commented on GitHub (Apr 17, 2020):
I'm running into this, as well. It's mystifying to me that the base
actions/checkout@v2step works, but subsequent manual fetches do not.@seve commented on GitHub (Apr 17, 2020):
@Scotchester I believe its due to checkout having a fallback curl retrieval when git either isn't present or not working (https://github.com/actions/checkout/pull/104)
@github-actions[bot] commented on GitHub (Jun 17, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@github-actions[bot] commented on GitHub (Aug 17, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@karlloic commented on GitHub (Aug 23, 2020):
Facing the same issue
@DarrellRichards commented on GitHub (Sep 20, 2020):
Also facing the same issue with a GitHub action that runs a
git fetchcommand@RDeluxe commented on GitHub (Nov 9, 2020):
Facing the same issue, while trying to run a
git fetchcommand@cmawhorter commented on GitHub (Nov 24, 2020):
outside of gh actions this solves the issue:
mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hostsbut when i put that as a
runstatement in my workflow it doesn't work. i'm a noob to gh actions/workflows so not sure what's going on. not sure if it's a GH issue or an act issue or what.Edit: it seems it's an act issue. the comment from the pr above mentions it.
i was able to bypass the issue sorta. it may work for cloning a repo but i'm still running into issues installing gh npm packages.
as for gh packages, i'm at a dead end here. it gets beyond the error OP mentions but always gives a permission denied error for some reason. is it possible to override the secrets.GITHUB_TOKEN?
@github-actions[bot] commented on GitHub (Jan 16, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@caylahamann commented on GitHub (Jan 27, 2021):
Running into this issue while trying to create a PR from a github action.
@LamarrD commented on GitHub (Feb 17, 2021):
Running into the same issue, "The authenticity of host 'github.com (140.82.113.4)' can't be established" followed by hanging. In my case trying to use the Path FIlter action, going to try a similar route as @cmawhorter unless someone has a better solution
@dannystaple commented on GitHub (Mar 17, 2021):
This is still a problem - how do you interact with the remote here?
@jsoref commented on GitHub (Apr 4, 2021):
Does this not work?
github.com/actions/checkout@c952173edf/action.yml (L37-L41)@github-actions[bot] commented on GitHub (May 5, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@seve commented on GitHub (May 27, 2021):
bump
@jsoref commented on GitHub (May 27, 2021):
The main difference between
actand GitHub has to do with how ssh sees the system.On GitHub:
In Act:
You can emulate this behavior by doing:
@jsoref commented on GitHub (May 28, 2021):
For reference, this problem isn't limited to
act.I'm running a https://github.com/evryfs/github-actions-runner runner in docker (i.e. "self-hosted")
And my job has been sitting running for:

40m 18s (and counting)
@catthehacker commented on GitHub (May 28, 2021):
In Docker, TTY is always allocated
@sveneh commented on GitHub (Jun 15, 2021):
Why is this closed? This is still a problem with the latest act version. Anyone knows a workaround?
@catthehacker commented on GitHub (Jun 15, 2021):
add this to workflow or use docker image that already does that (e.g.
catthehacker/ubuntu:act-latest)