Skip to content

Commit

Permalink
Set AWS login to use OIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
froch committed May 28, 2024
1 parent 077299a commit ce014eb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/aws-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ jobs:
name: Build Image
runs-on: ubuntu-latest
environment: CI
permissions:
id-token: write
contents: read

steps:
- name: Check out code
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
Expand Down

0 comments on commit ce014eb

Please sign in to comment.