From fc7b27a53b49cd49236b5f507590a85c0e490a5b Mon Sep 17 00:00:00 2001 From: Francis Roch Date: Tue, 28 May 2024 16:53:44 -0400 Subject: [PATCH] Set AWS login to use OIDC --- .github/workflows/aws-ecr.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aws-ecr.yml b/.github/workflows/aws-ecr.yml index f5188cf7da..2a59b1a8b8 100644 --- a/.github/workflows/aws-ecr.yml +++ b/.github/workflows/aws-ecr.yml @@ -18,11 +18,10 @@ jobs: uses: actions/checkout@v3 - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 + role-to-assume: ${{ secrets.AWS_OIDC_ROLE }} - name: Login to Amazon ECR id: login-ecr