Replace static registry token with Forgejo job token #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Current state
Forgejo Actions authenticate to the container registry with:
REGISTRY_USERNAMEREGISTRY_TOKENThe token has package read/write access and is passed explicitly to the shared container build workflow and private job containers.
The authentication is isolated in
shared/workflows, with a compatibility TODO for migration once Forgejo provides the required built-in job-token registry permissions.Goal
Replace the static registry credentials with the Forgejo job token once the required package pull and push behavior is available in the deployed Forgejo release.
Scope
Verify the implemented Forgejo job-token permissions for:
Update the shared container build workflow to authenticate with the built-in job token.
Update viafier consumer jobs to pull the private test image without
REGISTRY_USERNAMEandREGISTRY_TOKEN.Remove the static registry secret and variable when no longer required.
Remove the compatibility TODO.
Keep registry authentication localized in the shared workflow.
Do not introduce an additional authentication abstraction unless required by Forgejo.
Acceptance criteria
REGISTRY_USERNAMEandREGISTRY_TOKENare no longer required by viafier.develpublication behavior remains unchanged.