Skip to content

feat: add rule to enforce whitelist_for_tests in test files#36

Merged
ankush merged 3 commits into
frappe:developfrom
sagarvora:add-whitelist-for-tests-rule
Feb 5, 2026
Merged

feat: add rule to enforce whitelist_for_tests in test files#36
ankush merged 3 commits into
frappe:developfrom
sagarvora:add-whitelist-for-tests-rule

Conversation

@sagarvora

Copy link
Copy Markdown
Contributor

Adds semgrep rule to detect when test endpoints use @frappe.whitelist() instead of @whitelist_for_tests(). This ensures test endpoints are properly protected and only accessible in test environments.

Adds semgrep rule to detect when test endpoints use @frappe.whitelist()
instead of @whitelist_for_tests(). This ensures test endpoints are
properly protected and only accessible in test environments.
@sagarvora
sagarvora force-pushed the add-whitelist-for-tests-rule branch from b18a1f5 to b8d8401 Compare November 21, 2025 10:59
@sagarvora
sagarvora force-pushed the add-whitelist-for-tests-rule branch from 36c8247 to cf8eb22 Compare November 21, 2025 11:25
@ankush
ankush enabled auto-merge February 5, 2026 07:37
@ankush
ankush merged commit 654ffc0 into frappe:develop Feb 5, 2026
1 check passed
@sagarvora
sagarvora deleted the add-whitelist-for-tests-rule branch February 9, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants