From 3d36064a8ff8494c877679133abddbda2df7c959 Mon Sep 17 00:00:00 2001 From: NotRyken <127091011+NotRyken@users.noreply.github.com> Date: Thu, 23 May 2024 20:18:19 +0800 Subject: [PATCH] Use GH token with write perms --- .github/workflows/sync-labels.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 2090af3..537a17e 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -9,8 +9,6 @@ on: jobs: sync: runs-on: ubuntu-latest - env: - LABEL_SYNC_TOKEN: ${{ secrets.LABEL_SYNC_TOKEN }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -22,5 +20,4 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 - - run: npx github-label-sync -a '${{ secrets.LABEL_SYNC_TOKEN }}' -l '.github/labels.yml' ${{ github.repository }} - if: env.LABEL_SYNC_TOKEN != null + - run: npx github-label-sync -a '${{ secrets.GITHUB_TOKEN }}' -l '.github/labels.yml' ${{ github.repository }}