fix(release): use bot login for registry auth #112
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review!112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/release-prepare-image-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Verification
Fixes the release-prepare candidate image publish failure from run 218.
The PR introduces checks for the presence of
RELEASE_CANDIDATE_TOKENandRELEASE_PUBLISH_TOKENin 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
RELEASE_CANDIDATE_TOKENis set, preventing silent failures when the token is missing..forgejo/workflows/release-publish.yml
RELEASE_PUBLISH_TOKENis set, similar to the prepare workflow.tests/release_tooling_test.sh
🟡 Warning: Lines 7–10: Ensure that the
RELEASE_CANDIDATE_TOKENis set in the environment or documented as a required variable for the release-prepare workflow.🟡 Warning: Lines 7–10: Ensure that the
RELEASE_PUBLISH_TOKENis set in the environment or documented as a required variable for the release-publish workflow.New commits pushed, approval review dismissed automatically according to repository settings
This PR updates the release workflows to use a single
RELEASE_PUBLISH_TOKENfor 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:.forgejo/workflows/release-prepare.yml: Updated to useRELEASE_PUBLISH_TOKENinstead ofRELEASE_CANDIDATE_TOKENfor Docker image publication.docs/OPERATIONS.mdanddocs/THREAT-MODEL.md: Updated to reflect the new token usage and removed references to the candidate token.tests/release_tooling_test.sh: Adjusted to test for the presence ofRELEASE_PUBLISH_TOKENinstead ofRELEASE_CANDIDATE_TOKEN. Removed checks related to the candidate token.🟡 Warning: Ensure that the
RELEASE_PUBLISH_TOKENis correctly set in the secrets and that it has the appropriate permissions for publishing to the registry.