Skip to content

Commit 0ed4820

Browse files
Copilotlpcox
andauthored
Clarify intentional OpenFile mode for append-only GITHUB_ENV writes
Agent-Logs-Url: https://github.com/github/gh-aw-mcpg/sessions/8c6049c3-8a7e-4abf-93b8-615d1b4fb45a Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
1 parent d0e7f64 commit 0ed4820

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/cmd/proxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ func configureTLSTrustEnvironment(caCertPath string) error {
335335
}
336336

337337
// Best-effort append: the proxy should still start even if GITHUB_ENV cannot be opened.
338+
// Mode is intentionally 0 because O_CREATE is not used (existing runner-managed file only).
338339
f, err := os.OpenFile(githubEnvPath, os.O_APPEND|os.O_WRONLY, 0)
339340
if err != nil {
340341
logger.LogWarn("startup", "Skipping GITHUB_ENV TLS trust export: open failed for %s: %v", githubEnvPath, err)

0 commit comments

Comments
 (0)