Skip to content

Commit 6505712

Browse files
committed
fix: release token
1 parent 13beadb commit 6505712

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
if: "!contains(github.event.head_commit.message, 'skip ci')"
1717
timeout-minutes: 20
18+
permissions:
19+
contents: write
20+
issues: write
21+
pull-requests: write
1822
strategy:
1923
fail-fast: false
2024
matrix:
@@ -76,13 +80,13 @@ jobs:
7680
npx @vscode/vsce package -o svn-scm-community.vsix
7781
npm run semantic-release
7882
env:
79-
VSCE_TOKEN: ${{ secrets.vsceToken }}
80-
GITHUB_TOKEN: ${{ secrets.githubToken }}
81-
GH_TOKEN: ${{ secrets.githubToken }}
82-
GIT_AUTHOR_EMAIL: ${{ secrets.gitEmail }}
83-
GIT_COMMITTER_EMAIL: ${{ secrets.gitEmail }}
84-
GIT_AUTHOR_NAME: ${{ secrets.gitName }}
85-
GIT_COMMITTER_NAME: ${{ secrets.gitName }}
83+
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
84+
GITHUB_TOKEN: ${{ github.token }}
85+
GH_TOKEN: ${{ github.token }}
86+
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_EMAIL }}
87+
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_EMAIL }}
88+
GIT_AUTHOR_NAME: ${{ secrets.GIT_NAME }}
89+
GIT_COMMITTER_NAME: ${{ secrets.GIT_NAME }}
8690

8791
eslint:
8892
runs-on: ubuntu-latest
@@ -174,6 +178,10 @@ jobs:
174178
runs-on: ubuntu-latest
175179
if: (github.ref == 'refs/heads/master' && github.event_name == 'push') || github.event_name == 'workflow_dispatch'
176180
needs: [build, eslint, artifact]
181+
permissions:
182+
contents: write
183+
issues: write
184+
pull-requests: write
177185

178186
steps:
179187
- name: Checkout
@@ -229,7 +237,7 @@ jobs:
229237
svn-scm-community-ovsx.vsix
230238
generate_release_notes: true
231239
env:
232-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
240+
GITHUB_TOKEN: ${{ github.token }}
233241

234242
- name: Publish to OpenVSX Registry
235243
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)