[GH-ISSUE #1269] Hangs at end of actions/checkout@v2 after git fetch #692

Closed
opened 2026-03-01 21:45:34 +03:00 by kerem · 3 comments
Owner

Originally created by @AndrewSouthpaw on GitHub (Jul 20, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1269

Bug report info

$ act --bug-report
act version:            0.2.26
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 10
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
	/var/run/docker.sock
Config files:
	/Users/andrew/.actrc:
		-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest
		-P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04
Docker Engine:
	Engine version:        20.10.17
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         cgroupfs
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Docker Desktop
	OS type:               linux
	OS version:
	OS arch:               aarch64
	OS kernel:             5.10.104-linuxkit
	OS CPU:                2
	OS memory:             7951 MB
	Security options:
		name=seccomp,profile=default
		name=cgroupns

Command used with act

act -j test -e pullRequest.json --container-architecture linux/amd64 -s GITHUB_TOKEN=...

Describe issue

It gets to the end of the checkout, completes the git fetch, and hangs. Didn't respond to ^C, had to manually kill it from docker desktop.

No response

Workflow content

jobs:
  test:
    name: Run tests
    runs-on: ubuntu-latest
    steps:
      - run: echo hello world
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.event.pull_request.head.sha }}
      - uses: actions/setup-node@v2
        with:
          node-version: 14.17.6
          cache: npm

Relevant log output

[Test/Run tests] ⭐  Run actions/checkout@v2
[Test/Run tests]   ☁  git clone 'https://github.com/actions/checkout' # ref=v2
[Test/Run tests]   🐳  docker cp src=/Users/andrew/.cache/act/actions-checkout@v2/ dst=/var/run/act/actions/actions-checkout@v2/
[Test/Run tests]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/actions-checkout@v2/] user= workdir=
[Test/Run tests]   🐳  docker exec cmd=[node /var/run/act/actions/actions-checkout@v2/dist/index.js] user= workdir=
[Test/Run tests]   ❓  ::save-state name=isPost::true
[Test/Run tests]   💬  ::debug::GITHUB_WORKSPACE = '/Users/andrew/Projects/gather-town'
[Test/Run tests]   💬  ::debug::qualified repository = ...
[Test/Run tests]   💬  ::debug::ref = 'refs/heads/andrew/eng-4904-local-dev'
[Test/Run tests]   💬  ::debug::commit = ...
[Test/Run tests]   💬  ::debug::clean = true
[Test/Run tests]   💬  ::debug::fetch depth = 1
[Test/Run tests]   💬  ::debug::lfs = false
[Test/Run tests]   💬  ::debug::submodules = false
[Test/Run tests]   💬  ::debug::recursive submodules = false
[Test/Run tests]   💬  ::debug::Repository owner ID not found within GITHUB event info
[Test/Run tests]   ❓  ::add-matcher::/run/act/actions/actions-checkout@v2/dist/problem-matcher.json
| Syncing repository: gathertown/gather-town
[Test/Run tests]   ❓  ::group::Getting Git version info
| Working directory is '/Users/andrew/Projects/gather-town'
[Test/Run tests]   💬  ::debug::Getting git version
| [command]/usr/bin/git version
| git version 2.37.1
[Test/Run tests]   💬  ::debug::Set git useragent to: git/2.37.1 (github-actions-checkout)
[Test/Run tests]   ❓  ::endgroup::
[Test/Run tests]   ⚙  ***
| Temporarily overriding HOME='/tmp/c1d6a46e-a2d6-44db-8aaa-a713453687fb' before making global git config changes
| Adding repository directory to the temporary git global config as a safe directory
| [command]/usr/bin/git config --global --add safe.directory /Users/andrew/Projects/gather-town
[Test/Run tests]   ❓  ::save-state name=setSafeDirectory::true
| Deleting the contents of '/Users/andrew/Projects/gather-town'
[Test/Run tests]   ❓  ::save-state name=repositoryPath::/Users/andrew/Projects/gather-town
[Test/Run tests]   ❓  ::group::Initializing the repository
| [command]/usr/bin/git init /Users/andrew/Projects/gather-town
| hint: Using 'master' as the name for the initial branch. This default branch name
| hint: is subject to change. To configure the initial branch name to use in all
| hint: of your new repositories, which will suppress this warning, call:
| hint:
| hint: 	git config --global init.defaultBranch <name>
| hint:
| hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
| hint: 'development'. The just-created branch can be renamed via this command:
| hint:
| hint: 	git branch -m <name>
| Initialized empty Git repository in /Users/andrew/Projects/gather-town/.git/
| [command]/usr/bin/git remote add origin https://github.com/gathertown/gather-town
[Test/Run tests]   ❓  ::endgroup::
[Test/Run tests]   ❓  ::group::Disabling automatic garbage collection
| [command]/usr/bin/git config --local gc.auto 0
[Test/Run tests]   ❓  ::endgroup::
[Test/Run tests]   ❓  ::group::Setting up auth
| [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
| [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
| [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
| [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
| [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
[Test/Run tests]   ❓  ::endgroup::
[Test/Run tests]   ❓  ::group::Fetching the repository
| [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +...
| remote: Enumerating objects: 4870, done.
remote: Counting objects: 100% (4870/4870), done.
remote: Compressing objects: 100% (4405/4405), done.
[hangs]

Additional information

No response

Originally created by @AndrewSouthpaw on GitHub (Jul 20, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1269 ### Bug report info ```plain text $ act --bug-report act version: 0.2.26 GOOS: darwin GOARCH: arm64 NumCPU: 10 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock Config files: /Users/andrew/.actrc: -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest -P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04 Docker Engine: Engine version: 20.10.17 Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: aarch64 OS kernel: 5.10.104-linuxkit OS CPU: 2 OS memory: 7951 MB Security options: name=seccomp,profile=default name=cgroupns ``` ### Command used with act ```sh act -j test -e pullRequest.json --container-architecture linux/amd64 -s GITHUB_TOKEN=... ``` ### Describe issue It gets to the end of the checkout, completes the `git fetch`, and hangs. Didn't respond to `^C`, had to manually kill it from docker desktop. ### Link to GitHub repository _No response_ ### Workflow content ```yml jobs: test: name: Run tests runs-on: ubuntu-latest steps: - run: echo hello world - uses: actions/checkout@v2 with: ref: ${{ github.event.pull_request.head.sha }} - uses: actions/setup-node@v2 with: node-version: 14.17.6 cache: npm ``` ### Relevant log output ```sh [Test/Run tests] ⭐ Run actions/checkout@v2 [Test/Run tests] ☁ git clone 'https://github.com/actions/checkout' # ref=v2 [Test/Run tests] 🐳 docker cp src=/Users/andrew/.cache/act/actions-checkout@v2/ dst=/var/run/act/actions/actions-checkout@v2/ [Test/Run tests] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/actions-checkout@v2/] user= workdir= [Test/Run tests] 🐳 docker exec cmd=[node /var/run/act/actions/actions-checkout@v2/dist/index.js] user= workdir= [Test/Run tests] ❓ ::save-state name=isPost::true [Test/Run tests] 💬 ::debug::GITHUB_WORKSPACE = '/Users/andrew/Projects/gather-town' [Test/Run tests] 💬 ::debug::qualified repository = ... [Test/Run tests] 💬 ::debug::ref = 'refs/heads/andrew/eng-4904-local-dev' [Test/Run tests] 💬 ::debug::commit = ... [Test/Run tests] 💬 ::debug::clean = true [Test/Run tests] 💬 ::debug::fetch depth = 1 [Test/Run tests] 💬 ::debug::lfs = false [Test/Run tests] 💬 ::debug::submodules = false [Test/Run tests] 💬 ::debug::recursive submodules = false [Test/Run tests] 💬 ::debug::Repository owner ID not found within GITHUB event info [Test/Run tests] ❓ ::add-matcher::/run/act/actions/actions-checkout@v2/dist/problem-matcher.json | Syncing repository: gathertown/gather-town [Test/Run tests] ❓ ::group::Getting Git version info | Working directory is '/Users/andrew/Projects/gather-town' [Test/Run tests] 💬 ::debug::Getting git version | [command]/usr/bin/git version | git version 2.37.1 [Test/Run tests] 💬 ::debug::Set git useragent to: git/2.37.1 (github-actions-checkout) [Test/Run tests] ❓ ::endgroup:: [Test/Run tests] ⚙ *** | Temporarily overriding HOME='/tmp/c1d6a46e-a2d6-44db-8aaa-a713453687fb' before making global git config changes | Adding repository directory to the temporary git global config as a safe directory | [command]/usr/bin/git config --global --add safe.directory /Users/andrew/Projects/gather-town [Test/Run tests] ❓ ::save-state name=setSafeDirectory::true | Deleting the contents of '/Users/andrew/Projects/gather-town' [Test/Run tests] ❓ ::save-state name=repositoryPath::/Users/andrew/Projects/gather-town [Test/Run tests] ❓ ::group::Initializing the repository | [command]/usr/bin/git init /Users/andrew/Projects/gather-town | hint: Using 'master' as the name for the initial branch. This default branch name | hint: is subject to change. To configure the initial branch name to use in all | hint: of your new repositories, which will suppress this warning, call: | hint: | hint: git config --global init.defaultBranch <name> | hint: | hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and | hint: 'development'. The just-created branch can be renamed via this command: | hint: | hint: git branch -m <name> | Initialized empty Git repository in /Users/andrew/Projects/gather-town/.git/ | [command]/usr/bin/git remote add origin https://github.com/gathertown/gather-town [Test/Run tests] ❓ ::endgroup:: [Test/Run tests] ❓ ::group::Disabling automatic garbage collection | [command]/usr/bin/git config --local gc.auto 0 [Test/Run tests] ❓ ::endgroup:: [Test/Run tests] ❓ ::group::Setting up auth | [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand | [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : | [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader | [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || : | [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** [Test/Run tests] ❓ ::endgroup:: [Test/Run tests] ❓ ::group::Fetching the repository | [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +... | remote: Enumerating objects: 4870, done. remote: Counting objects: 100% (4870/4870), done. remote: Compressing objects: 100% (4405/4405), done. [hangs] ``` ### Additional information _No response_
kerem 2026-03-01 21:45:34 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@AndrewSouthpaw commented on GitHub (Aug 5, 2022):

I tried this again a couple weeks later and it's working again. Maybe my computer was just having a day. 🤷🏼‍♂️

<!-- gh-comment-id:1206084491 --> @AndrewSouthpaw commented on GitHub (Aug 5, 2022): I tried this again a couple weeks later and it's working again. Maybe my computer was just having a day. 🤷🏼‍♂️
Author
Owner

@dhaval-dhanani-coforge commented on GitHub (Aug 24, 2023):

Can we reopen? I am facing same issue.

<!-- gh-comment-id:1691118409 --> @dhaval-dhanani-coforge commented on GitHub (Aug 24, 2023): Can we reopen? I am facing same issue.
Author
Owner

@andrewvaughan commented on GitHub (Oct 6, 2023):

Just adding that I've run into this, as well - there's not a lot of data in verbose logs that's very helpful. I can't tell if it's an issue on the GitHub server or with the client.

Even after failing, it hangs, which makes me think it's an odd quirk in act and not a server issue:

...

[Issue Progress on Branch Created/Label Issue on Branch Create]   💬  ::debug::fetch tags = false
[Issue Progress on Branch Created/Label Issue on Branch Create]   💬  ::debug::lfs = false
[Issue Progress on Branch Created/Label Issue on Branch Create]   💬  ::debug::submodules = false
[Issue Progress on Branch Created/Label Issue on Branch Create]   💬  ::debug::recursive submodules = false
[Issue Progress on Branch Created/Label Issue on Branch Create]   ❗  ::error::Input required and not supplied: token
[Issue Progress on Branch Created/Label Issue on Branch Create]   ❌  Failure - Main Checking out repository

...hangs...

I actually have to go kill the docker container because I can't even CTL+C out.

Edit:

I think this is happening because I have my SSH key managed by a password manager. Usually when I clone an SSH repository, 1Password pops up for me to authenticate. I have a feeling this may be causing some issues. I'll update here if I find more in case someone finds this as a top search result like I did.

<!-- gh-comment-id:1750917900 --> @andrewvaughan commented on GitHub (Oct 6, 2023): Just adding that I've run into this, as well - there's not a lot of data in verbose logs that's very helpful. I can't tell if it's an issue on the GitHub server or with the client. Even after failing, it hangs, which makes me think it's an odd quirk in `act` and not a server issue: ``` ... [Issue Progress on Branch Created/Label Issue on Branch Create] 💬 ::debug::fetch tags = false [Issue Progress on Branch Created/Label Issue on Branch Create] 💬 ::debug::lfs = false [Issue Progress on Branch Created/Label Issue on Branch Create] 💬 ::debug::submodules = false [Issue Progress on Branch Created/Label Issue on Branch Create] 💬 ::debug::recursive submodules = false [Issue Progress on Branch Created/Label Issue on Branch Create] ❗ ::error::Input required and not supplied: token [Issue Progress on Branch Created/Label Issue on Branch Create] ❌ Failure - Main Checking out repository ...hangs... ``` I actually have to go kill the docker container because I can't even `CTL+C` out. **Edit:** I think this is happening because I have my SSH key managed by a password manager. Usually when I clone an SSH repository, 1Password pops up for me to authenticate. I have a feeling this may be causing some issues. I'll update here if I find more in case someone finds this as a top search result like I did.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#692
No description provided.