Skip to content

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

Open
@jwildeboer

Description

@jwildeboer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions