fix: ruby.lang.security.dangerous-subshell.dangerous-subshell security vulnerability

Automated security fix generated by OrbisAI Security
This commit is contained in:
orbisai0security 2026-07-20 12:39:29 +00:00
parent 080bbbe852
commit 27343244ce
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ ignored_exts = %w[
]
EXTSOURCES =
`git ls-files -z #{root}`.split("\x0")
IO.popen(["git", "ls-files", "-z", root.to_s], &:read).split("\x0")
.collect {|file| Pathname(file)}
.reject {|file|
ignored_exts.include?(file.extname) ||