diff --git a/lib/allowed-paths.js b/lib/allowed-paths.js index 9e706d2..69906e7 100644 --- a/lib/allowed-paths.js +++ b/lib/allowed-paths.js @@ -8,7 +8,8 @@ const BASE = [ ]; const CODE_INFRA = [ - /specs\//i, /test/i, /config/i, /package\.json/i, /install/i, /setup/i, + /specs\//i, /[\/\\]tests?[\/\\]/i, /[\/\\]config[\/\\]/i, + /package\.json/i, /install\.(sh|js|py)/i, /setup\.(sh|js|py)/i, ]; // isAllowed(filePath, ...extraPatterns) — returns true if filePath matches