Skip to content

Commit 97303a5

Browse files
committed
🔧 Add GH_TOKEN environment variable to GitHub Actions workflow for Electron builds on Windows, MacOS, and Linux to enable secure access to GitHub resources.
1 parent fb6a5b7 commit 97303a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/webpack.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,19 @@ jobs:
3232
if: ${{ matrix.os == 'windows-latest' }}
3333
run: |
3434
npm run build:electron:win
35+
env:
36+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
3537

3638
- name: Build MacOS
3739
if: ${{ matrix.os == 'macos-latest' }}
3840
run: |
3941
npm run build:electron:mac
42+
env:
43+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4044

4145
- name: Build Linux
4246
if: ${{ matrix.os == 'ubuntu-latest' }}
4347
run: |
44-
npm run build:electron:linux
48+
npm run build:electron:linux
49+
env:
50+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)