Skip to content

Commit b0aea07

Browse files
committed
🐛 fix CI push auth broken by checkout v7
1 parent 85d1081 commit b0aea07

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build-jobs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
steps:
1818
- name: Checkout repo
1919
uses: actions/checkout@v7
20+
with:
21+
# don't persist the default GITHUB_TOKEN auth, the commit step
22+
# pushes with CHAINDATA_CI_SUPERUSER_ACCESS_TOKEN instead
23+
persist-credentials: false
2024
- name: Setup pnpm
2125
uses: pnpm/action-setup@v6
2226
- name: Setup Node.js environment
@@ -32,7 +36,6 @@ jobs:
3236
env:
3337
CHAINDATA_CI_SUPERUSER_ACCESS_TOKEN: ${{ secrets.CHAINDATA_CI_SUPERUSER_ACCESS_TOKEN }}
3438
run: |
35-
git config --local --unset-all 'http.https://github.com/.extraheader'
3639
git remote set-url origin https://x-access-token:${CHAINDATA_CI_SUPERUSER_ACCESS_TOKEN}@github.com/TalismanSociety/chaindata
3740
git config user.name "chaindata-ci-superuser[bot]"
3841
git config user.email "146698419+chaindata-ci-superuser[bot]@users.noreply.github.com"

.github/workflows/fetch-external.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
steps:
2929
- name: Checkout repo
3030
uses: actions/checkout@v7
31+
with:
32+
# don't persist the default GITHUB_TOKEN auth, the commit step
33+
# pushes with CHAINDATA_CI_SUPERUSER_ACCESS_TOKEN instead
34+
persist-credentials: false
3135
- name: Setup pnpm
3236
uses: pnpm/action-setup@v6
3337
- name: Setup Node.js environment
@@ -47,7 +51,6 @@ jobs:
4751
env:
4852
CHAINDATA_CI_SUPERUSER_ACCESS_TOKEN: ${{ secrets.CHAINDATA_CI_SUPERUSER_ACCESS_TOKEN }}
4953
run: |
50-
git config --local --unset-all 'http.https://github.com/.extraheader'
5154
git remote set-url origin https://x-access-token:${CHAINDATA_CI_SUPERUSER_ACCESS_TOKEN}@github.com/TalismanSociety/chaindata
5255
git config user.name "chaindata-ci-superuser[bot]"
5356
git config user.email "146698419+chaindata-ci-superuser[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)