checkout/src
Nathan Moin Vaziri 2d76d21b2e
Pin GIT_CONFIG_GLOBAL to the temp config during global auth setup
configureTempGlobalConfig isolates global git config by overriding HOME to
a temporary directory. But GIT_CONFIG_GLOBAL takes precedence over HOME when
git locates the global config file, so when a workflow already has
GIT_CONFIG_GLOBAL set in the environment, 'git config --global' writes land
in that file instead of the temporary config. replaceTokenPlaceholder then
reads the temporary config, cannot find the placeholder, and fails with
'Unable to replace auth placeholder'.

Set GIT_CONFIG_GLOBAL to the temporary config alongside the HOME override so
global config operations always target the temp file regardless of any
inherited value, and unset it again in removeGlobalConfig.

Assisted-By: Claude Opus 4.8
2026-06-24 10:26:49 -07:00
..
misc getting ready for checkout v7 release (#2464) 2026-06-17 09:59:35 -04:00
fs-helper.ts Update NPM dependencies (#1703) 2024-04-24 12:04:10 -04:00
git-auth-helper.ts Pin GIT_CONFIG_GLOBAL to the temp config during global auth setup 2026-06-24 10:26:49 -07:00
git-command-manager.ts upgrade module to esm and update dependencies (#2463) 2026-06-16 17:10:58 -04:00
git-directory-helper.ts upgrade module to esm and update dependencies (#2463) 2026-06-16 17:10:58 -04:00
git-source-provider.ts upgrade module to esm and update dependencies (#2463) 2026-06-16 17:10:58 -04:00
git-source-settings.ts block checking out fork pr for pull_request_target and workflow_run (#2454) 2026-06-16 10:03:43 -04:00
git-version.ts Convert checkout to a regular action (#70) 2019-12-03 10:28:59 -05:00
github-api-helper.ts upgrade module to esm and update dependencies (#2463) 2026-06-16 17:10:58 -04:00
input-helper.ts upgrade module to esm and update dependencies (#2463) 2026-06-16 17:10:58 -04:00
main.ts upgrade module to esm and update dependencies (#2463) 2026-06-16 17:10:58 -04:00
ref-helper.ts upgrade module to esm and update dependencies (#2463) 2026-06-16 17:10:58 -04:00
regexp-helper.ts add support for submodules (#173) 2020-03-05 14:21:59 -05:00
retry-helper.ts update dev dependencies and react to new linting rules (#611) 2021-10-19 09:52:57 -05:00
state-helper.ts Fix comment typos (that got added in #770) (#1057) 2022-12-28 17:19:08 -05:00
unsafe-pr-checkout-helper.ts update error wording (#2467) 2026-06-17 13:51:53 -04:00
url-helper.ts upgrade module to esm and update dependencies (#2463) 2026-06-16 17:10:58 -04:00
workflow-context-helper.ts Update NPM dependencies (#1703) 2024-04-24 12:04:10 -04:00