fix: fix: stop baking credentials into git remote URLs — use clean URLs + existing credential helper everywhere (#604)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d076528193
commit
5c4ea7373a
10 changed files with 336 additions and 72 deletions
|
|
@ -23,6 +23,15 @@ log() {
|
|||
printf '[%s] runner: %s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" "$*"
|
||||
}
|
||||
|
||||
# Configure git credential helper so formulas can clone/push without
|
||||
# needing tokens embedded in remote URLs (#604).
|
||||
if [ -f "${FACTORY_ROOT}/lib/git-creds.sh" ]; then
|
||||
# shellcheck source=lib/git-creds.sh
|
||||
source "${FACTORY_ROOT}/lib/git-creds.sh"
|
||||
# shellcheck disable=SC2119 # no args intended — uses defaults
|
||||
configure_git_creds
|
||||
fi
|
||||
|
||||
# ── Argument parsing ─────────────────────────────────────────────────────
|
||||
|
||||
action_id="${1:-}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue