Skip to content

Commit 820a989

Browse files
committed
fix(checkov): add permissions to GitHub Actions CD
1 parent 83fd0ba commit 820a989

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/cd.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ on:
66
- main
77
- '*.*'
88

9+
permissions:
10+
contents: read
11+
id-token: read
12+
actions: read
13+
checks: write
14+
deployments: write
15+
pull-requests: read
16+
917
jobs:
1018
deploy:
1119
runs-on: ubuntu-latest
@@ -45,7 +53,7 @@ jobs:
4553
uses: google-github-actions/auth@v1
4654
with:
4755
credentials_json: ${{ secrets.BUCKET_CREDS }}
48-
56+
4957
- name: 'Set up Cloud SDK'
5058
uses: 'google-github-actions/setup-gcloud@v1'
5159

@@ -63,7 +71,7 @@ jobs:
6371
- name: Fetch API Platform references and guides
6472
working-directory: docs-website
6573
run: tools/get-core-docs.sh
66-
- name: Build menu
74+
- name: Build menu
6775
working-directory: docs-website
6876
run: node tools/menu.mjs
6977
- name: Hugo

0 commit comments

Comments
 (0)