ci: fix clone auth — move netrc creds from environment to settings

woodpeckerci/plugin-git reads credentials via PLUGIN_NETRC_* env vars
(set from settings:), not CI_NETRC_* (set from environment:). The
previous fix in 57deaaa put the secret under environment:, so the
plugin never populated .netrc and git fell back to prompting, which
fails with GIT_TERMINAL_PROMPT=0.

Fix both ci.yml and e2e.yml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-02-27 09:41:51 +00:00
parent aef608b656
commit 1b647f844a
2 changed files with 6 additions and 10 deletions

View file

@ -13,11 +13,9 @@ clone:
image: woodpeckerci/plugin-git
settings:
depth: 50
environment:
GIT_TERMINAL_PROMPT: "0"
CI_NETRC_MACHINE: codeberg.org
CI_NETRC_USERNAME: johba
CI_NETRC_PASSWORD:
netrc_machine: codeberg.org
netrc_username: johba
netrc_password:
from_secret: codeberg_token
# All background services - services get proper DNS resolution in Woodpecker