Skip to content

Commit

Permalink
try fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
shineli1984 committed Aug 22, 2024
1 parent 099fcdc commit 30c571d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- main
- ts-backend

# this is used by github OIDC to assume the admin role later on
permissions: # see this: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout

env:
AWS_REGION: us-east-2
GITHUB_TOKEN: ${{ secrets.TS_IMMUTABLE_SDK_GITHUB_TOKEN }}
Expand All @@ -17,7 +22,7 @@ jobs:
steps:
- name: configure aws credentials
id: aws-credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_IMMUTABLE_PROD_ADMIN_ROLE }}
aws-region: ${{ env.AWS_REGION }}
Expand Down

0 comments on commit 30c571d

Please sign in to comment.