Skip to content

Commit e20d6c4

Browse files
authored
Fix API lambda workflow permissions (#1831)
1 parent 85607e1 commit e20d6c4

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/deploy-api-lambda-edge.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ permissions:
1111
jobs:
1212
deploy:
1313
uses: ./.github/workflows/deploy-api-lambda.yml
14+
permissions:
15+
id-token: write
16+
contents: read
1417
with:
1518
environment: edge

.github/workflows/deploy-api-lambda-prod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ permissions:
1414
jobs:
1515
deploy:
1616
uses: ./.github/workflows/deploy-api-lambda.yml
17+
permissions:
18+
id-token: write
19+
contents: read
1720
with:
1821
environment: prod
1922
ref: refs/tags/${{ github.event.inputs.ref }}

.github/workflows/deploy-api-lambda-staging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ permissions:
1111
jobs:
1212
deploy:
1313
uses: ./.github/workflows/deploy-api-lambda.yml
14+
permissions:
15+
id-token: write
16+
contents: read
1417
with:
1518
environment: staging
1619
ref: refs/tags/${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)