Authenticate release tag verification #7

Merged
adam merged 1 commit from codex/release-tag-auth into main 2026-11-29 15:02:43 -05:00
Owner

The release workflow removes checkout credentials, so its later HTTPS git ls-remote can fail with exit 128 before verifying the release tag. Supply the workflow token only to the tag resolver, using a repository-scoped header in the child Git environment with redirects disabled. Credentials are not written to Git configuration or placed in command arguments. Exact tag/commit validation remains mandatory, and the existing beta tag is unchanged.

Validation: seven release tests pass, including scoped credentials, invalid endpoints, missing/moved tags, and prerelease handling. Authenticated HTTPS verification against the real Forgejo endpoint resolves v0.3.0b4 to the intended immutable commit.

The release workflow removes checkout credentials, so its later HTTPS `git ls-remote` can fail with exit 128 before verifying the release tag. Supply the workflow token only to the tag resolver, using a repository-scoped header in the child Git environment with redirects disabled. Credentials are not written to Git configuration or placed in command arguments. Exact tag/commit validation remains mandatory, and the existing beta tag is unchanged. Validation: seven release tests pass, including scoped credentials, invalid endpoints, missing/moved tags, and prerelease handling. Authenticated HTTPS verification against the real Forgejo endpoint resolves `v0.3.0b4` to the intended immutable commit.
Authenticate immutable release tag verification
All checks were successful
Test and build / build (push) Successful in 3m8s
Test and build / build (pull_request) Successful in 3m9s
Logging service / logging (push) Successful in 6m29s
Logging service / logging (pull_request) Successful in 6m28s
6fa3bdc840
adam merged commit be6b4b6cde into main 2026-11-29 15:02:43 -05: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
adam/crewbot!7
No description provided.