Skip to content

Commit

Permalink
Move permissions higher
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed May 6, 2024
1 parent 4dca40d commit e113bab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
id-token: write

name: Deploy to dev/staging

Expand Down Expand Up @@ -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 }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

jobs:
release:
permissions:
id-token: write

runs-on: ubuntu-latest
name: Deploy release
env:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit e113bab

Please sign in to comment.