fix(security): suppress gosec false positives G703 and G118

Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-15 13:41:26 +00:00
parent b7390c02f8
commit 0cb9da3085
3 changed files with 2 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ func setupTestLogEnvironment(t *testing.T, testDataFile string) (cleanup func())
if err != nil {
t.Fatalf("Failed to read test file: %v", err)
}
if err := os.WriteFile(mainLog, data, shared.DefaultFilePermissions); err != nil {
if err := os.WriteFile(mainLog, data, shared.DefaultFilePermissions); err != nil { // #nosec G703 -- path is constructed from t.TempDir() and a literal string, not user input
t.Fatalf("Failed to create test log: %v", err)
}