Skip to content

Commit b6db650

Browse files
committed
chore(workflows): add permissions for contents in CI and CD workflows
1 parent efa9fea commit b6db650

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/CD.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write # Needed to push to gh-pages branch
1012
steps:
1113
- uses: actions/checkout@v4
1214

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
ci:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read # Needed to checkout the repository
1214
steps:
1315
- uses: actions/checkout@v4
1416

0 commit comments

Comments
 (0)