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

This commit is contained in:
Copilot
2026-03-15 17:59:43 +02:00
committed by GitHub
parent 26c75fc2da
commit c5b81d04b6
6 changed files with 16 additions and 17 deletions

View File

@@ -58,6 +58,7 @@ func setupBenchmarkLogEnvironment(b *testing.B, source string) func() {
tempDir := b.TempDir()
dest := filepath.Join(tempDir, "fail2ban.log")
// #nosec G703 -- dest is constructed from b.TempDir() and a literal string, not user input
if err := os.WriteFile(dest, data, 0o600); err != nil {
b.Fatalf("failed to create benchmark log file: %v", err)
}