Skip to content

Commit 5645803

Browse files
committed
fix: Use github.token with write permissions for releases
1 parent 88cb440 commit 5645803

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/build-electron.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
jobs:
1414
release:
1515
runs-on: ${{ matrix.os }}
16+
permissions:
17+
contents: write
1618
strategy:
1719
fail-fast: false
1820
matrix:
@@ -100,7 +102,7 @@ jobs:
100102
APPLE_ID: ${{ secrets.apple_id }}
101103
APPLE_ID_PASSWORD: ${{ secrets.apple_id_password }}
102104
APPLE_TEAM_ID: ${{ secrets.apple_team_id }}
103-
GH_TOKEN: ${{ secrets.github_token }}
105+
GH_TOKEN: ${{ github.token }}
104106

105107
- name: Mac - Build Electron App
106108
if: startsWith(matrix.os, 'macos')
@@ -118,7 +120,7 @@ jobs:
118120
done
119121
env:
120122
NODE_ENV: production
121-
GH_TOKEN: ${{ secrets.github_token }}
123+
GH_TOKEN: ${{ github.token }}
122124
CSC_LINK: ${{ secrets.mac_certs }}
123125
APPLE_API_KEY: ${{ secrets.apple_api_key }}
124126
APPLE_API_KEY_ID: ${{ secrets.apple_api_key_id }}
@@ -135,7 +137,7 @@ jobs:
135137
cp "packages/keepkey-desktop/dist/KeepKey-Desktop-*-*-arm64.dmg" "packages/keepkey-desktop/dist/KeepKey-Desktop-latest.dmg"
136138
env:
137139
NODE_ENV: production
138-
GH_TOKEN: ${{ secrets.github_token }}
140+
GH_TOKEN: ${{ github.token }}
139141

140142
- name: Windows - Upload .exe
141143
if: startsWith(matrix.os, 'windows')

0 commit comments

Comments
 (0)