Skip to content

Commit 10b3f64

Browse files
Adding id-token
1 parent bb067ed commit 10b3f64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-and-push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- main
1111

12+
permissions:
13+
contents: read
14+
id-token: write
15+
1216
env:
1317
AWS_REGION: us-east-1
1418
ECR_REPOSITORY: west-discovery
@@ -63,8 +67,6 @@ jobs:
6367
with:
6468
aws-region: ${{ env.AWS_REGION }}
6569
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
66-
role-duration-seconds: 3600
67-
role-session-name: GitHubActions-${{ github.run_id }}
6870

6971
- name: Login to Amazon ECR
7072
id: login-ecr

0 commit comments

Comments
 (0)