mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
Since the runner image rotation on 2026-10-20 every sync has failed to push to PX4/px4_msgs with "could not read Username for 'https://github.com'". The token was never rejected: the image carries libcurl 7.81.0-1ubuntu1.30, whose CVE-2026-94266 fix strips credentials from CURLINFO_EFFECTIVE_URL, and git 2.55 compares that against the URL it requested, reports a redirect that never happened and re-derives its credentials from the stripped URL. A token embedded as the URL username is therefore dropped before the push. Clone px4_msgs without credentials and let gh's credential helper supply the token from GH_TOKEN. This is the interface git and GitHub provide for this, it survives the libcurl change on both the current and the previous image, and it keeps the token out of argv and .git/config on the runner. Reproduced with the runner's exact git 2.55.0 PPA build against the patched jammy libcurl: the URL form fails identically, the credential helper path sends the credentials. Assisted-by: Claude:claude-mythos-5-1 Signed-off-by: Ramon Roche <mrpollo@gmail.com>