Skip to content

Commit e1a400a

Browse files
authored
chore(ci): add permissions to semantic-release workflow (#754)
1 parent 771ee18 commit e1a400a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@ on:
77
- rc
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
release:
1215
runs-on: ubuntu-latest
1316
if: "!contains(github.event.head_commit.message, 'skip ci')"
14-
17+
permissions:
18+
contents: write
19+
issues: write
20+
pull-requests: write
21+
id-token: write
1522
steps:
1623
- name: Checkout
1724
uses: actions/checkout@v4
@@ -22,8 +29,8 @@ jobs:
2229
- name: Setup Node.js
2330
uses: actions/setup-node@v4
2431
with:
25-
node-version: '20'
26-
cache: 'npm'
32+
node-version: "20"
33+
cache: "npm"
2734

2835
- name: Install dependencies
2936
run: npm ci

0 commit comments

Comments
 (0)