diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index e57b5577b6..b2d4e981f2 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write + id-token: write name: Deploy to dev/staging @@ -46,8 +47,6 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v3 - permissions: - id-token: write with: role-to-assume: ${{ secrets.AWS_ROLE }} aws-region: ${{ secrets.AWS_REGION }} diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index f50d69c9c0..077a6515f8 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -6,6 +6,9 @@ on: jobs: release: + permissions: + id-token: write + runs-on: ubuntu-latest name: Deploy release env: @@ -48,8 +51,6 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v3 - permissions: - id-token: write with: role-to-assume: ${{ secrets.AWS_ROLE }} aws-region: ${{ secrets.AWS_REGION }}