Skip to content

Commit 02b5ede

Browse files
author
Disturbing
committed
fix: update GitHub Actions workflow with proper permissions
1 parent f021ef6 commit 02b5ede

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ jobs:
1414
contents: write
1515
packages: write
1616
pull-requests: write
17+
id-token: write
1718
steps:
1819
- name: Checkout
1920
uses: actions/checkout@v4
2021
with:
2122
fetch-depth: 0
23+
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
2224

2325
- name: Setup Node.js
2426
uses: actions/setup-node@v4
@@ -49,5 +51,5 @@ jobs:
4951
commit: "chore(release): version packages"
5052
title: "chore(release): version packages"
5153
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
5355
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)