Commit fee8df2
Keep GITHUB_TOKEN out of .git/config during the dist build
Flagged by CodeRabbit on the multisite PR; applies identically here. The job
runs `npm install` and the webpack/composer dist build against the checkout,
and actions/checkout persists the GITHUB_TOKEN into .git/config by default, so
that build executes with a usable push credential sitting in the working tree.
Verified this is safe rather than assuming it: create-pull-request calls
GitConfigHelper.configureToken() with its own `token` input (defaulting to
github.token) and sets its own http.<host>/.extraheader before pushing - it
even saves and unsets any persisted extraheader first, then restores it
afterwards. So the PR step supplies its own auth and does not read what
checkout persisted.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019LoLgW7oFjBPxGea9kiZJ21 parent 127ca3a commit fee8df2
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
0 commit comments