Repository navigation
PREQ-10549 Authenticate to ECR Public before building the release action image - #448
Conversation
…ion image The release job builds main/Dockerfile from a local action, which pulls its python base image from public.ecr.aws anonymously. Anonymous pulls share the per-IP data quota of the GitHub-hosted runners and fail with 429 when it is exhausted. Log in to ECR Public before the Release step so the pull is authenticated against the AWS account instead. Requires ecr-public:GetAuthorizationToken and sts:GetServiceBearerToken on ReleasbilityChecksCICDRoleV2. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
This comment will be updated automatically if new data arrives. 🔗 Commit SHA: 6872541 | Docs | View more details | Give us feedback! |
Code Review ✅ Approved 🟡 Medium riskThe ECR Public login requires IAM permissions absent from the described role, so releases could fail until that dependency is applied. Adds an Verification Rules 3/3 met Repos 11 inspected · PRs 1 inspectedFunctional validation No results Rules 3 passed 1 not applicable
Broader impact Repos 11 inspected PRs 1 inspectedCross-repo 11 repositories inspected 0 open impacts
6 more repositories Cross-PR 1 PR inspected 0 open impacts
Auto-approval Not enabledFor more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|



PREQ-10549 Authenticate to ECR Public before the release action image is built.
The reusable workflow runs
./gh-action_release/mainas a local Docker action. The runner buildsmain/Dockerfileinside that step, and bothFROM public.ecr.aws/docker/library/pythonpulls are anonymous, so they share the per-IP data quota of the GitHub-hosted runners and fail with429 Data limit exceededwhen it is exhausted. This adds anaws-actions/amazon-ecr-loginstep (registry-type: public, pinned to the v2.2.0 commit) before the Release step, so the pulls are authenticated against the AWS account.Depends on an IAM change:
ReleasbilityChecksCICDRoleV2currently grants only SNS/SQS actions. It needsecr-public:GetAuthorizationTokenandsts:GetServiceBearerToken, defined inSonarSource/sonarsource-iam(https://github.com/SonarSource/sonarsource-iam/pull/2500). Do not merge before that change is applied: the login step would fail every release.Scope: this covers the
mainimage built throughmain.yaml. Theaws-s3action used byjavadoc-publication.yamlis a remote Docker action, built during job setup before any step, so a login step cannot reach it; it stays exposed until the image is prebuilt (BUILD-13191).Validation: dry-run on a dummy project once the IAM change is applied; the run link will be added here.