From 6bf3eb79a9aa809bc38ead6ccf3687aaab4bdae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alvaro=20Mu=C3=B1oz?= Date: Thu, 17 Oct 2024 10:44:43 +0200 Subject: [PATCH] Add sh as a bash-compatible POSIX shell --- ql/lib/codeql/actions/Bash.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ql/lib/codeql/actions/Bash.qll b/ql/lib/codeql/actions/Bash.qll index 672f7727f5b..c1e038069eb 100644 --- a/ql/lib/codeql/actions/Bash.qll +++ b/ql/lib/codeql/actions/Bash.qll @@ -4,7 +4,7 @@ class BashShellScript extends ShellScript { BashShellScript() { exists(Run run | this = run.getScript() and - run.getShell().matches("bash%") + run.getShell().matches(["bash%", "sh"]) ) }