Description
After upgrading go-git from v5.16.5 to v5.17.1 (#2961), the Chainloop attestation init step fails in CI with:
ERR initializing crafting state: getting git commit hash: opening repository: core.repositoryformatversion does not support extension: worktreeconfig
Reproduction
This happens in repositories that have extensions.worktreeConfig = true set in their git config (common when using git worktree).
Failing job: https://github.com/chainloop-dev/chainloop/actions/runs/23765321146/job/69243124996
Root Cause
The go-git v5.17.1 upgrade (#2961, merged 2026-03-30) likely introduced stricter validation of git repository format extensions. When a repository has worktreeConfig enabled, go-git now rejects it as an unsupported extension.
Impact
Any CI pipeline using Chainloop attestation in a repository with worktree config enabled will fail at the init step.