From 4d523db3b980138d131b699541848a5ec623abeb Mon Sep 17 00:00:00 2001 From: Anduin Xue Date: Mon, 27 Nov 2023 07:53:56 +0000 Subject: [PATCH] Update build.yml to avoid using token. --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 34dd6716..226d7c2b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,14 +5,17 @@ on: branches: [ master ] workflow_dispatch: +permissions: + contents: write + jobs: Rebuild-everything: runs-on: ubuntu-latest steps: - # Checkout, install tools.. - - uses: actions/checkout@v2 + - name: Clone + uses: actions/checkout@v3 with: - token: ${{ secrets.PAT }} + persist-credentials: 'true' - uses: actions/setup-node@v2 with: node-version: '16'