Skip to content

Commit 5c6178c

Browse files
committed
Define GitHub action permissions on job level
1 parent 5d8e4cd commit 5c6178c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release-site.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ on:
1818
push:
1919
tags: ['[0-9]+.[0-9]+*']
2020

21-
permissions:
22-
contents: write
23-
2421
jobs:
2522
build-site:
2623
runs-on: ubuntu-latest
@@ -51,6 +48,8 @@ jobs:
5148
deploy-site:
5249
runs-on: ubuntu-latest
5350
needs: ['build-site']
51+
permissions:
52+
contents: write
5453
steps:
5554
- uses: actions/checkout@v6
5655
with:

0 commit comments

Comments
 (0)