Skip to content

Commit 377ccf8

Browse files
authored
Add ecr:BatchGetImage permission to helm-publish workflow (#759)
1 parent c808284 commit 377ccf8

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/helm-publish.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
with:
4747
role-to-assume: ${{ vars.IAM_ROLE }}
4848
aws-region: ${{ vars.AWS_REGION }}
49-
# We only need valid credentials for authentication with ECR, so only ecr:GetAuthorizationToken.
5049
inline-session-policy: >-
5150
{
5251
"Version": "2012-10-17",
@@ -56,6 +55,12 @@ jobs:
5655
"Effect":"Allow",
5756
"Action":"ecr:GetAuthorizationToken",
5857
"Resource":"*"
58+
},
59+
{
60+
"Sid":"AllowECRRead",
61+
"Effect": "Allow",
62+
"Action": "ecr:BatchGetImage",
63+
"Resource": "arn:aws:ecr:us-east-1:602401143452:repository/eks/*"
5964
}
6065
]
6166
}

scripts/verify-helm-images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ set -euo pipefail
1616
# - yq: YAML processor (https://github.com/mikefarah/yq)
1717
# - crane: Container registry tool (https://github.com/google/go-containerregistry/tree/main/cmd/crane)
1818
#
19-
# Note: AWS credentials are required with any ecr:GetAuthorizationToken permission to access EKS add-on repositories.
19+
# Note: AWS credentials are required with ecr:GetAuthorizationToken and ecr:BatchGetImage permissions to access EKS add-on repositories.
2020

2121
CHART_DIR="charts/aws-mountpoint-s3-csi-driver"
2222
VALUES_FILE="${CHART_DIR}/values.yaml"

0 commit comments

Comments
 (0)