Skip to content

Commit 9437497

Browse files
committed
ci: fix permissions
Signed-off-by: Sergei Lukianov <[email protected]>
1 parent 9812dde commit 9437497

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ concurrency:
2121
jobs:
2222
build:
2323
runs-on: ubuntu-latest
24+
25+
permissions:
26+
contents: write
27+
issues: write
28+
pull-requests: write
29+
statuses: write
30+
2431
steps:
2532
- uses: actions/checkout@v4
2633
with:
@@ -34,7 +41,7 @@ jobs:
3441
run: just build
3542

3643
- name: Deploy preview to Netlify
37-
uses: nwtgck/actions-netlify@v2
44+
uses: nwtgck/actions-netlify@v3
3845
if: github.event_name == 'pull_request'
3946
with:
4047
publish-dir: ./site

.github/workflows/publish.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,18 @@ concurrency:
1919
jobs:
2020
publish:
2121
runs-on: ubuntu-latest
22+
23+
permissions:
24+
contents: write
25+
statuses: write
26+
2227
steps:
2328
- uses: actions/checkout@v4
2429
with:
2530
fetch-depth: 0
2631

2732
- name: Deploy to Netlify
28-
uses: nwtgck/actions-netlify@v2
33+
uses: nwtgck/actions-netlify@v3
2934
with:
3035
publish-dir: ./
3136
production-deploy: true

0 commit comments

Comments
 (0)