File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
actions/ql/lib/codeql/actions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -699,13 +699,13 @@ module Bash {
699
699
// VAR2=$(cmd)
700
700
// VAR3=$VAR2
701
701
// echo "FIELD=${VAR3:-default}" >> $GITHUB_ENV (field, file_write_value)
702
+ containsCmdSubstitution ( value2 , cmd ) and
702
703
script .getAnAssignment ( var2 , value2 ) and
704
+ containsParameterExpansion ( value3 , var2 , _, _) and
703
705
script .getAnAssignment ( var3 , value3 ) and
706
+ containsParameterExpansion ( expr , var3 , _, _) and
704
707
not varMatchesRegexTest ( script , var2 , alphaNumericRegex ( ) ) and
705
- not varMatchesRegexTest ( script , var3 , alphaNumericRegex ( ) ) and
706
- containsCmdSubstitution ( value2 , cmd ) and
707
- containsParameterExpansion ( value3 , var2 , _, _) and
708
- containsParameterExpansion ( expr , var3 , _, _)
708
+ not varMatchesRegexTest ( script , var3 , alphaNumericRegex ( ) )
709
709
)
710
710
or
711
711
// var reaches the file write directly
You can’t perform that action at this time.
0 commit comments