Skip to content

Commit ba6fe12

Browse files
authored
fix: revered back to using GITHUB_TOKEN (#481)
1 parent d8dd073 commit ba6fe12

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

.github/workflows/release-desktop.yaml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ on:
3232
required: true
3333
type: string
3434
secrets:
35-
BOT_ID:
36-
required: true
37-
BOT_SK:
38-
required: true
3935
APPLE_CERTIFICATE:
4036
required: true
4137
APPLE_CERTIFICATE_PASSWORD:
@@ -77,24 +73,10 @@ jobs:
7773
platform: [ubuntu-22.04, windows-latest, macos-13, macos-14]
7874

7975
steps:
80-
- name: Generate bot token
81-
uses: actions/create-github-app-token@v1
82-
id: app_token
83-
with:
84-
app-id: ${{ secrets.BOT_ID }}
85-
private-key: ${{ secrets.BOT_SK }}
86-
87-
- name: Debug app token
88-
run: |
89-
echo "App token length: ${#APP_TOKEN}"
90-
echo "First 4 characters: ${APP_TOKEN:0:4}..."
91-
env:
92-
APP_TOKEN: ${{ steps.app_token.outputs.token }}
93-
9476
- uses: actions/checkout@v4
9577
with:
96-
# Use bot token for authenticated operations
97-
token: ${{ steps.app_token.outputs.token }}
78+
# Use GitHub token for authenticated operations
79+
token: ${{ secrets.GITHUB_TOKEN }}
9880
fetch-depth: 0
9981

10082
- name: Setup node
@@ -108,7 +90,7 @@ jobs:
10890
- name: Install npm dependencies
10991
run: npm ci --ignore-scripts
11092
env:
111-
NODE_AUTH_TOKEN: ${{ steps.app_token.outputs.token }}
93+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11294

11395
# Let scripts run without the token
11496
- run: npm rebuild

0 commit comments

Comments
 (0)