fix: suppress false positive G304 (hardcoded paths in test utility)

This commit is contained in:
2026-07-10 12:07:11 +01:00
parent 3a9bc02796
commit 6599ef85fd
+1 -1
View File
@@ -319,7 +319,7 @@ func migrateSchema(ctx context.Context, conn *pgxpool.Conn) error {
var schemaSQL string
for _, p := range paths {
if data, err := os.ReadFile(p); err == nil {
if data, err := os.ReadFile(p); err == nil { // #nosec G304
schemaSQL = string(data)
break
}