Skip to content

Commit a719b51

Browse files
authored
Merge branch 'main' into ml-dsa-private-seed
2 parents 00188e3 + cc9c9f0 commit a719b51

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

tests/ci/cdk/cdk/ecr_stack.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ class EcrStack(Stack):
1111
def __init__(self, scope: Construct, id: str, repo_name: str, **kwargs) -> None:
1212
super().__init__(scope, id, **kwargs)
1313

14-
ecr.Repository(scope=self, id=id, repository_name=repo_name).grant_pull_push(
15-
iam.ServicePrincipal("codebuild.amazonaws.com"))
14+
repo = ecr.Repository(scope=self, id=id, repository_name=repo_name)
15+
repo.grant_pull_push(iam.ServicePrincipal("codebuild.amazonaws.com"))
16+
repo.grant_pull(iam.ArnPrincipal("arn:aws:iam::222961743098:role/scrutini-ecr"))

tests/ci/cdk/util/iam_policies.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -207,17 +207,6 @@ def ecr_power_user_policy_in_json(ecr_repo_names):
207207
"ecr:PutImage"
208208
],
209209
"Resource": ecr_arns
210-
},
211-
{
212-
"Sid": "scrutinice",
213-
"Effect": "Allow",
214-
"Principal": {
215-
"AWS": "arn:aws:iam::222961743098:role/scrutini-ecr"
216-
},
217-
"Action": [
218-
"ecr:BatchGetImage",
219-
"ecr:GetDownloadUrlForLayer"
220-
]
221210
}
222211
]
223212
}

0 commit comments

Comments
 (0)