Interview Prep/Helm/OCI, CI/CD & GitOps

How would you give GitHub Actions push access to ECR for charts without long-lived keys?

IntermediateScenarioOCI, CI/CD & GitOps
Answer

Situation read → Static AWS keys in CI secrets are a liability.

What I'd do →

  1. Configure GitHub OIDC provider in AWS and an IAM role trusted for repo:org/repo:ref:refs/heads/main.
  2. Use aws-actions/configure-aws-credentials with role-to-assume.
  3. aws ecr get-login-password | helm registry login --username AWS --password-stdin $REG.
  4. Scope the role to ecr:PutImage, ecr:InitiateLayerUpload, etc. on charts/* only.

Why → Short-lived, scoped credentials remove the leaked-key risk.

Interview tip → OIDC federation is the expected answer in 2025–2026.

All Helm questions Roadmap: Helm

More on OCI, CI/CD & GitOps