Skip to content

Commit 389fa62

Browse files
authored
fix: Add new entry to FORBIDDEN_USERNAMES_REGEXPS (#582)
Ensure people cannot hijack CLI install paths - see https://docs.apify.com/cli/docs/next/installation
1 parent 58b45ab commit 389fa62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/utilities/src/utilities.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,12 @@ const FORBIDDEN_USERNAMES_REGEXPS = [
241241
// All hidden files
242242
'(\\..*)',
243243

244-
// File starting with xxx-
244+
// Username starting with xxx-
245245
'(xxx-.*)',
246246

247+
// Username starting with install-cli. (see https://docs.apify.com/cli/docs/installation)
248+
'(install-cli\\..*)',
249+
247250
// Strings not starting with letter or number
248251
'([^0-9a-z].*)',
249252

0 commit comments

Comments
 (0)