diff --git a/.github/workflows/prepare-patch-release.yml b/.github/workflows/prepare-patch-release.yml index d5a8ca655af6..d1f29d808402 100644 --- a/.github/workflows/prepare-patch-release.yml +++ b/.github/workflows/prepare-patch-release.yml @@ -19,6 +19,7 @@ jobs: prepare-patch-pull-request: name: Prepare patch pull request runs-on: ubuntu-latest + environment: release defaults: run: working-directory: scripts @@ -27,6 +28,7 @@ jobs: uses: actions/checkout@v3 with: ref: main + token: ${{ secrets.GH_TOKEN }} - name: Setup Node.js uses: actions/setup-node@v3 diff --git a/.github/workflows/prepare-prerelease.yml b/.github/workflows/prepare-prerelease.yml index 932c4b31f64f..e1d250575832 100644 --- a/.github/workflows/prepare-prerelease.yml +++ b/.github/workflows/prepare-prerelease.yml @@ -37,6 +37,7 @@ jobs: prepare-prerelease-pull-request: name: Prepare prerelease pull request runs-on: ubuntu-latest + environment: release defaults: run: working-directory: scripts @@ -48,6 +49,7 @@ jobs: # this needs to be set to a high enough number that it will contain the last version tag # as of May 2023, the whole repo had 55K commits fetch-depth: 10000 + token: ${{ secrets.GH_TOKEN }} - name: Setup Node.js uses: actions/setup-node@v3