diff --git a/rules/sinks/storages/orm/go.yaml b/rules/sinks/storages/orm/go.yaml new file mode 100644 index 00000000..9726c153 --- /dev/null +++ b/rules/sinks/storages/orm/go.yaml @@ -0,0 +1,17 @@ +sinks: + + - id: Storages.ORM.GORM.Write + name: GORM (Write) + domains: + - gorm.io + patterns: + - "(?i)(gorm.io/gorm).*(Updates|Create|Save|SavePoint|Replace|CreateInBatches|Delete)" + tags: + + - id: Storage.ORM.GORM.Read + name: GORM (Read) + domains: + - gorm.io + patterns: + - "(?i)(gorm.io/gorm).*(Find|FindInBatches|Where|Exec)" + tags: \ No newline at end of file