From 2be96edf736d3f97fd8d515e9c427c130bc64d3e Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Wed, 4 Nov 2020 11:19:46 -0600 Subject: [PATCH] Try using actions/checkout's persist-credentials input instead of manually changing the local git config --- .github/workflows/test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1230afb9aa..566734f9eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,6 +37,9 @@ jobs: - if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }} name: Check out repo uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 + with: + # Enables cloning the Early Access repo later with the relevant PAT + persist-credentials: 'false' - if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }} name: Setup node @@ -109,10 +112,6 @@ jobs: name: Install dependencies run: npm ci - - if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' && github.repository == 'github/docs-internal' }} - name: Clear out the Actions git authorization extraHeader config - run: git config --local "http.https://github.com/.extraheader" "" - - if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' && github.repository == 'github/docs-internal' }} name: Clone early access run: npm run heroku-postbuild