From 34791b8c6445070c8067b1baecf28bd6b484bfd4 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Thu, 16 Dec 2021 06:26:54 -0500 Subject: [PATCH] ci: generate token first and use for clone --- .github/workflows/ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a69f47ed..72621100 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,10 +62,18 @@ jobs: - build - test steps: + - name: Generate a GitHub token + uses: tibdex/github-app-token@v1 + id: generate_token + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + - name: checkout uses: actions/checkout@v2 with: fetch-depth: 0 + token: ${{ steps.generate_token.outputs.token }} persist-credentials: false - name: setup nodejs @@ -85,13 +93,6 @@ jobs: - name: package assets run: npm run package - - name: Generate a GitHub token - uses: tibdex/github-app-token@v1 - id: generate_token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - name: release run: npx semantic-release env: