chore: remove warning rules

semgrep-action doesn't consider severity, hence ignoring these rules for now.
This commit is contained in:
Ankush Menat 2021-07-21 19:54:06 +05:30
parent 6fbb2d3507
commit 28d52c4a95
No known key found for this signature in database
GPG Key ID: 8EA82E09BBD13AAF

View File

@ -8,18 +8,3 @@ rules:
dynamic content. Avoid it or use safe_eval(). dynamic content. Avoid it or use safe_eval().
languages: [python] languages: [python]
severity: ERROR severity: ERROR
- id: frappe-sqli-format-strings
patterns:
- pattern-inside: |
@frappe.whitelist()
def $FUNC(...):
...
- pattern-either:
- pattern: frappe.db.sql("..." % ...)
- pattern: frappe.db.sql(f"...", ...)
- pattern: frappe.db.sql("...".format(...), ...)
message: |
Detected use of raw string formatting for SQL queries. This can lead to sql injection vulnerabilities. Refer security guidelines - https://github.com/frappe/erpnext/wiki/Code-Security-Guidelines
languages: [python]
severity: WARNING