Skip to content

Commit 0f71e26

Browse files
authored
chore: add missing permissions for OIDC Federation
1 parent 89b2ebe commit 0f71e26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker-images.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
name: jsii/superchain
1616
permissions:
1717
contents: read
18+
id-token: write # Necessary for OIDC federation
1819
runs-on: ubuntu-latest
1920
strategy:
2021
matrix:
@@ -75,8 +76,9 @@ jobs:
7576
if: steps.should-run.outputs.result == 'true' && steps.federate_to_aws.outputs.enabled == 'true'
7677
uses: aws-actions/configure-aws-credentials@v1
7778
with:
78-
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
7979
aws-region: us-east-1
80+
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
81+
role-session-name: GHA_aws-jsii_docker-images
8082

8183
# Login to ECR Public registry, so we don't get throttled at 1 TPS
8284
- name: Login to ECR Public

0 commit comments

Comments
 (0)