fix(release): use bot login for registry auth #112

Merged
jwilger merged 3 commits from fix/release-prepare-image-build into main 2026-05-06 10:19:14 -07:00
Owner

Summary

  • Use a dedicated RELEASE_BOT_LOGIN variable for skopeo registry authentication in release prepare and publish workflows.
  • Keep RELEASE_BOT_NAME for signed git commit attribution while documenting the separate registry login requirement.
  • Add release tooling contract coverage for the login split.

Verification

  • nix develop --command bash tests/release_tooling_test.sh

Fixes the release-prepare candidate image publish failure from run 218.

## Summary - Use a dedicated RELEASE_BOT_LOGIN variable for skopeo registry authentication in release prepare and publish workflows. - Keep RELEASE_BOT_NAME for signed git commit attribution while documenting the separate registry login requirement. - Add release tooling contract coverage for the login split. ## Verification - nix develop --command bash tests/release_tooling_test.sh Fixes the release-prepare candidate image publish failure from run 218.
fix(release): use bot login for registry auth
Some checks failed
CI / auto_review semantic review (pull_request) Blocked by required conditions
CI / Nix flake check (pull_request) Has been cancelled
d08e82a586
fix(release): keep bot identity variable names
All checks were successful
CI / Nix flake check (pull_request) Successful in 2m49s
CI / auto_review semantic review (pull_request) Successful in 1s
auto_review auto_review: 2 warnings
c4e80f6a29
auto-review approved these changes 2026-05-06 10:06:34 -07:00
Dismissed
auto-review left a comment

The PR introduces checks for the presence of RELEASE_CANDIDATE_TOKEN and RELEASE_PUBLISH_TOKEN in the release workflows to prevent failures due to missing tokens. The changes appear safe to merge, ensuring better error handling and documentation for required environment variables.

Walkthrough

  • .forgejo/workflows/release-prepare.yml

    • Added a check to ensure RELEASE_CANDIDATE_TOKEN is set, preventing silent failures when the token is missing.
    • This change improves error handling by providing a clear error message if the token is not set.
  • .forgejo/workflows/release-publish.yml

    • Added a check to ensure RELEASE_PUBLISH_TOKEN is set, similar to the prepare workflow.
    • This ensures that the publish workflow does not proceed without the necessary authentication token.
  • tests/release_tooling_test.sh

    • Updated tests to verify that the workflows fail clearly when the required tokens are missing, ensuring that the new checks are effective.
The PR introduces checks for the presence of `RELEASE_CANDIDATE_TOKEN` and `RELEASE_PUBLISH_TOKEN` in the release workflows to prevent failures due to missing tokens. The changes appear safe to merge, ensuring better error handling and documentation for required environment variables. ## Walkthrough - **.forgejo/workflows/release-prepare.yml** - Added a check to ensure `RELEASE_CANDIDATE_TOKEN` is set, preventing silent failures when the token is missing. - This change improves error handling by providing a clear error message if the token is not set. - **.forgejo/workflows/release-publish.yml** - Added a check to ensure `RELEASE_PUBLISH_TOKEN` is set, similar to the prepare workflow. - This ensures that the publish workflow does not proceed without the necessary authentication token. - **tests/release_tooling_test.sh** - Updated tests to verify that the workflows fail clearly when the required tokens are missing, ensuring that the new checks are effective.
Owner

🟡 Warning: Lines 7–10: Ensure that the RELEASE_CANDIDATE_TOKEN is set in the environment or documented as a required variable for the release-prepare workflow.

🟡 **Warning:** **Lines 7–10:** Ensure that the `RELEASE_CANDIDATE_TOKEN` is set in the environment or documented as a required variable for the release-prepare workflow.
jwilger marked this conversation as resolved
Owner

🟡 Warning: Lines 7–10: Ensure that the RELEASE_PUBLISH_TOKEN is set in the environment or documented as a required variable for the release-publish workflow.

🟡 **Warning:** **Lines 7–10:** Ensure that the `RELEASE_PUBLISH_TOKEN` is set in the environment or documented as a required variable for the release-publish workflow.
jwilger marked this conversation as resolved
fix(release): reuse publish token for candidates
All checks were successful
CI / Nix flake check (pull_request) Successful in 2m46s
CI / auto_review semantic review (pull_request) Successful in 2s
auto_review auto_review: 1 warning
Publish release / release-publish (pull_request) Has been skipped
14ad533d4e
jwilger dismissed auto-review's review 2026-05-06 10:10:58 -07:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

auto-review left a comment

This PR updates the release workflows to use a single RELEASE_PUBLISH_TOKEN for both candidate and final image publication, simplifying the credential management. The changes appear safe to merge, but ensure that the new token setup is correctly configured in the environment.

Walkthrough

Δ since c4e80f6:

  • Workflow Changes:
    • .forgejo/workflows/release-prepare.yml: Updated to use RELEASE_PUBLISH_TOKEN instead of RELEASE_CANDIDATE_TOKEN for Docker image publication.
  • Documentation Updates:
    • docs/OPERATIONS.md and docs/THREAT-MODEL.md: Updated to reflect the new token usage and removed references to the candidate token.
  • Test Adjustments:
    • tests/release_tooling_test.sh: Adjusted to test for the presence of RELEASE_PUBLISH_TOKEN instead of RELEASE_CANDIDATE_TOKEN. Removed checks related to the candidate token.
This PR updates the release workflows to use a single `RELEASE_PUBLISH_TOKEN` for both candidate and final image publication, simplifying the credential management. The changes appear safe to merge, but ensure that the new token setup is correctly configured in the environment. ## Walkthrough ### Δ since c4e80f6: - **Workflow Changes**: - `.forgejo/workflows/release-prepare.yml`: Updated to use `RELEASE_PUBLISH_TOKEN` instead of `RELEASE_CANDIDATE_TOKEN` for Docker image publication. - **Documentation Updates**: - `docs/OPERATIONS.md` and `docs/THREAT-MODEL.md`: Updated to reflect the new token usage and removed references to the candidate token. - **Test Adjustments**: - `tests/release_tooling_test.sh`: Adjusted to test for the presence of `RELEASE_PUBLISH_TOKEN` instead of `RELEASE_CANDIDATE_TOKEN`. Removed checks related to the candidate token.
Owner

🟡 Warning: Ensure that the RELEASE_PUBLISH_TOKEN is correctly set in the secrets and that it has the appropriate permissions for publishing to the registry.

🟡 **Warning:** Ensure that the `RELEASE_PUBLISH_TOKEN` is correctly set in the secrets and that it has the appropriate permissions for publishing to the registry.
jwilger marked this conversation as resolved
jwilger deleted branch fix/release-prepare-image-build 2026-05-06 10:19:14 -07:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
Slipstream/auto_review!112
No description provided.