test: retain credential checks after runner Git guard additions
1 file changed,
+4
−1
internal/runner/forge/publisher_test.go+4 −1
CI failed — run details
diff --git a/internal/runner/forge/publisher_test.go b/internal/runner/forge/publisher_test.go| index f9303400..f79356ee 100644 |
| --- a/internal/runner/forge/publisher_test.go |
| +++ b/internal/runner/forge/publisher_test.go |
| @@ -516,10 +516,13 @@ os.execve('/usr/bin/git',['/usr/bin/git']+args,dict(os.environ)) |
| if strings.Contains(args, "agent-canary") || row.Env["PERSON_SECRET"] != "" { |
| t.Fatal("credential escaped allowed environment") |
| } |
| + if row.Env["GIT_CONFIG_KEY_7"] != "maintenance.auto" || row.Env["GIT_CONFIG_VALUE_7"] != "false" || row.Env["GIT_CONFIG_KEY_8"] != "gc.autoDetach" || row.Env["GIT_CONFIG_VALUE_8"] != "false" { |
| + t.Fatal("publication lost detached helper guards") |
| + } |
| remote := strings.Contains(args, "https://amadan.net/example/repo") |
| if remote { |
| remoteCalls++ |
| - if row.Env["GIT_CONFIG_VALUE_7"] != "Authorization: Bearer agent-canary" { |
| + if row.Env["GIT_CONFIG_COUNT"] != "10" || row.Env["GIT_CONFIG_KEY_9"] != "http.extraHeader" || row.Env["GIT_CONFIG_VALUE_9"] != "Authorization: Bearer agent-canary" { |
| t.Fatal("runner credential missing") |
| } |
| } else if strings.Contains(fmt.Sprint(row.Env), "agent-canary") { |