fix: suppress false positive G304 (hardcoded paths in test utility)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user