| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
|
Getting this one in to start working on Docker Hub OIDC integration as follow-up of docker/login-action#1048 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
relates to #146
This adds a registry-identities input to the reusable build.yml and bake.yml workflows so callers can authenticate to registries through keyless identity metadata instead of passing static registry credentials. The first supported provider is AWS ECR through GitHub OIDC and aws-actions/configure-aws-credentials, followed by docker/login-action using ambient AWS credentials.
This introduces a shared setup-registry-identities.yml reusable workflow that parses the YAML input before build work starts. The build and bake workflows call that parser, configure AWS credentials when an aws-ecr identity is present, and then run a separate docker/login-action step with generated ECR registry-auth entries. Existing registry-auths secrets continue to work through a separate login step, so secret-based auth and identity-based auth are not merged into the same YAML payload.
The aws-ecr identity currently accepts one registry identity with aws-region, role-to-assume, and registry. Callers pass the exact ECR registry server that should be used for Docker login, such as 175142243308.dkr.ecr.us-east-2.amazonaws.com for private ECR or public.ecr.aws for public ECR.
The goal is to let callers move AWS ECR authentication away from long-lived static credentials while keeping the provider-specific auth steps pinned and controlled inside GitHub Builder.