Skip to content

Commit 1f00547

Browse files
committed
chore: set permissions for semantic-release
1 parent cc27009 commit 1f00547

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ on:
66
# Allows you to run this workflow manually from the Actions tab
77
workflow_dispatch:
88

9-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10-
permissions:
11-
contents: read
12-
pages: write
13-
id-token: write
14-
159
# Allow one concurrent deployment
1610
concurrency:
1711
group: "pages"
@@ -20,6 +14,14 @@ concurrency:
2014
jobs:
2115
build:
2216
runs-on: ubuntu-latest
17+
# permissions on the GITHUB_TOKEN to allow deployment to GitHub Pages and for semantic-release
18+
permissions:
19+
contents: write # to be able to publish a GitHub release
20+
issues: write # to be able to comment on released issues
21+
pull-requests: write # to be able to comment on released pull requests
22+
id-token: write # to enable use of OIDC for npm provenance and github pages publishing
23+
pages: write # github pages publishing
24+
2325
steps:
2426
- uses: actions/checkout@v4
2527
# https://github.com/actions/configure-pages

0 commit comments

Comments
 (0)