Skip to content

Commit d569b23

Browse files
authored
fix(ci): disable persist-credentials in per_commit checkout (#32)
1 parent 9758026 commit d569b23

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/actions/ecosystem_ci_per_commit/action.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ runs:
6060
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6161
with:
6262
fetch-depth: 1
63+
# checkout@v6 persists credentials via includeIf gitdir, which leaks
64+
# GITHUB_TOKEN auth into the worktree later created by
65+
# JamesIves/github-pages-deploy-action and overrides the PAT in `token`,
66+
# causing 403 on cross-repo push.
67+
# See https://github.com/JamesIves/github-pages-deploy-action/issues/1928
68+
persist-credentials: false
6369

6470
- name: Setup Node.js
6571
if: steps.eco_ci.outcome == 'failure'
@@ -98,6 +104,7 @@ runs:
98104
ref: main
99105
path: ecosystem-ci-repo
100106
fetch-depth: 1
107+
persist-credentials: false
101108

102109
- name: Update Ecosystem History
103110
id: update-history

0 commit comments

Comments
 (0)