feat(forge-checkout): object-format input for sha1 repositories #7

Merged
robin.everaars merged 1 commit from feat/forge-checkout-object-format into main 2026-10-28 12:56:42 +00:00
Owner

forge-checkout always sets GIT_DEFAULT_HASH=sha256. In a sha1 repository the fetch then fails with "couldn't find remote ref" and every job dies at checkout; HOIST-IT-Infra/odoo-config hit this on its first run and fell back to the plain checkout action.

The new input object-format (default sha256, so existing callers are unchanged) sets the hash for the checkout and for the exact-SHA reset. The step name shows the format in use.

Tested from HOIST-IT-Infra/odoo-config PR #3, which points at this branch with object-format: sha1: both jobs ran "Checkout (sha1)" and passed (run 9223).

After merge this needs a tag (v0.6.0) so sha1 repositories can pin it.

forge-checkout always sets GIT_DEFAULT_HASH=sha256. In a sha1 repository the fetch then fails with "couldn't find remote ref" and every job dies at checkout; HOIST-IT-Infra/odoo-config hit this on its first run and fell back to the plain checkout action. The new input `object-format` (default `sha256`, so existing callers are unchanged) sets the hash for the checkout and for the exact-SHA reset. The step name shows the format in use. Tested from HOIST-IT-Infra/odoo-config PR #3, which points at this branch with `object-format: sha1`: both jobs ran "Checkout (sha1)" and passed (run 9223). After merge this needs a tag (v0.6.0) so sha1 repositories can pin it.
forge-checkout always set GIT_DEFAULT_HASH=sha256, so in a sha1 repository
the fetch failed with "couldn't find remote ref" and the repository had to
fall back to the plain checkout action. The new input object-format
(default sha256, so existing callers are unchanged) sets the hash for the
checkout and for the exact-SHA reset.
robin.everaars deleted branch feat/forge-checkout-object-format 2026-10-28 12:56:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
HOIST-IT-Actions/actions!7
No description provided.