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

@ -10,11 +10,9 @@ clone:
image: woodpeckerci/plugin-git image: woodpeckerci/plugin-git
settings: settings:
depth: 50 depth: 50
environment: netrc_machine: codeberg.org
GIT_TERMINAL_PROMPT: "0" netrc_username: johba
CI_NETRC_MACHINE: codeberg.org netrc_password:
CI_NETRC_USERNAME: johba
CI_NETRC_PASSWORD:
from_secret: codeberg_token from_secret: codeberg_token
steps: steps:

View file

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