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

actions/checkout fails on git repos that use SHA256 #1843

Open
jwildeboer opened this issue Aug 3, 2024 · 1 comment
Open

actions/checkout fails on git repos that use SHA256 #1843

jwildeboer opened this issue Aug 3, 2024 · 1 comment

Comments

@jwildeboer
Copy link

jwildeboer commented Aug 3, 2024

actions/checkout@v3 and @v4 fails on git repos that use SHA256 instead of SHA1.

Expected result: checkout works.

Actual result: checkout fails with couldn't find remote ref

Fetching the repository
[38](https://forge.wildeboer.net/JHWOrg/MyTODO/actions/runs/22#jobstep-4-38)
[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +bd7d79ede2060266e3e30c5f233938f82868d4533e06b19588c5ce0cfc072c89:refs/remotes/origin/main
[39](https://forge.wildeboer.net/JHWOrg/MyTODO/actions/runs/22#jobstep-4-39)
fatal: couldn't find remote ref bd7d79ede2060266e3e30c5f233938f82868d4533e06b19588c5ce0cfc072c89
[40](https://forge.wildeboer.net/JHWOrg/MyTODO/actions/runs/22#jobstep-4-40)
The process '/usr/bin/git' failed with exit code 128
[41](https://forge.wildeboer.net/JHWOrg/MyTODO/actions/runs/22#jobstep-4-41)
Waiting 19 seconds before trying again
[42](https://forge.wildeboer.net/JHWOrg/MyTODO/actions/runs/22#jobstep-4-42)
[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +bd7d79ede2060266e3e30c5f233938f82868d4533e06b19588c5ce0cfc072c89:refs/remotes/origin/main
[43](https://forge.wildeboer.net/JHWOrg/MyTODO/actions/runs/22#jobstep-4-43)
fatal: couldn't find remote ref bd7d79ede2060266e3e30c5f233938f82868d4533e06b19588c5ce0cfc072c89
[44](https://forge.wildeboer.net/JHWOrg/MyTODO/actions/runs/22#jobstep-4-44)
The process '/usr/bin/git' failed with exit code 128

The image I use (ghcr.io/catthehacker/ubuntu:act-latest) has git version 2.46.0 which supports SHA256 based repos, so it seems that is not where the problem is coming from.

@kuznetsoveugeneskyboxlabs

Is there any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants