From 1b0f8f2b9eeb5fd873e98de3c71f960cf6272fe5 Mon Sep 17 00:00:00 2001 From: Michael Drury Date: Thu, 1 Jun 2023 15:01:57 +0100 Subject: [PATCH] Revert "There has been an issue with open source contributors being able to perform CI runs for their PRs - this is related to the addition of the pro checkout/submodule recursion in a recent update. Changing it to not use the contributors personal access token, but to instead use the github access token so that it can always be checked out and tested again the specified pro version." This reverts commit ec67b162b8b5c1943c634ba7650ddfc11a3add46. --- .github/workflows/budibase_ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index d915a7f0ad..4e0bc8b3a9 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -16,6 +16,7 @@ on: env: BRANCH: ${{ github.event.pull_request.head.ref }} BASE_BRANCH: ${{ github.event.pull_request.base.ref}} + PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} jobs: lint: @@ -36,7 +37,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -54,7 +55,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -74,7 +75,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -94,7 +95,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -109,7 +110,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -133,7 +134,7 @@ jobs: uses: actions/checkout@v3 with: submodules: true - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} fetch-depth: 0 - name: Check submodule run: |