From eab8f4c8b52f3e7525366abef0067b2a905a6457 Mon Sep 17 00:00:00 2001 From: CobyPear Date: Tue, 12 Dec 2023 15:48:12 -0600 Subject: [PATCH] Do not persist credentials for release checkouts --- .github/workflows/canary-release.yml | 4 +++- .github/workflows/release-and-split.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index a043091cd..f3c04bfee 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -22,7 +22,9 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - token: ${{ secrets.ACCESS_TOKEN }} + # workaround to ensure force pushes to changeset branch use machine account + # see https://github.com/changesets/action/issues/70 + persist-credentials: false - uses: pnpm/action-setup@v2 with: version: 8.8.0 diff --git a/.github/workflows/release-and-split.yml b/.github/workflows/release-and-split.yml index cb08340d8..570fe7437 100644 --- a/.github/workflows/release-and-split.yml +++ b/.github/workflows/release-and-split.yml @@ -99,7 +99,9 @@ jobs: - name: Checkout code uses: actions/checkout@v3 with: - token: ${{ secrets.ACCESS_TOKEN }} + # workaround to ensure force pushes to changeset branch use machine account + # see https://github.com/changesets/action/issues/70 + persist-credentials: false - name: Setup node if: ${{ matrix.generator_cmd != '' }}