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