mirror of
https://github.com/ivuorinen/f2b.git
synced 2026-03-18 17:02:13 +00:00
fix(security): suppress gosec false positives G703 and G118 (#136)
This commit is contained in:
@@ -45,6 +45,7 @@ func setupTestLogEnvironment(t *testing.T, testDataFile string) (cleanup func())
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to read test file: %v", err)
|
||||
}
|
||||
// #nosec G703 -- path is constructed from t.TempDir() and a literal string, not user input
|
||||
if err := os.WriteFile(mainLog, data, shared.DefaultFilePermissions); err != nil {
|
||||
t.Fatalf("Failed to create test log: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user