Skip to content

Commit e893040

Browse files
authored
Fix: Add permissions to api lambda workflows (#1688)
1 parent 4d4f858 commit e893040

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/build-api-lambda.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
required: false
1212
type: string
1313
default: ${{ github.ref }}
14+
15+
permissions:
16+
contents: read
1417

1518
jobs:
1619
build:

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@ on:
44
branches:
55
- main
66
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
710

811
jobs:
912
build:
13+
permissions:
14+
contents: read
1015
uses: ./.github/workflows/build-api-lambda.yml
1116

1217
deploy:
18+
permissions:
19+
contents: read
20+
id-token: write
1321
runs-on: ubuntu-latest
1422
needs: build
1523
environment: docs-api-edge

0 commit comments

Comments
 (0)