File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
ql/lib/codeql/actions/security Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,15 @@ class ActionsMutableRefCheckout extends MutableRefCheckoutStep instanceof UsesSt
92
92
or
93
93
// 3rd party actions returning the PR head sha/ref
94
94
exists ( UsesStep step |
95
- step .getCallee ( ) = [ "eficode/resolve-pr-refs" , "xt0rted/pull-request-comment-branch" ] and
96
- // TODO: This should be read step of the head_sha or head_ref output vars
97
- this .getArgument ( "ref" ) .regexpMatch ( ".*head_ref.*" ) and
95
+ (
96
+ step .getCallee ( ) = [ "eficode/resolve-pr-refs" , "xt0rted/pull-request-comment-branch" ] and
97
+ // TODO: This should be read step of the head_sha or head_ref output vars
98
+ this .getArgument ( "ref" ) .matches ( "%.head_ref%" )
99
+ or
100
+ step .getCallee ( ) = [ "github/branch-deploy" ] and
101
+ // TODO: This should be read step of the ref output var
102
+ this .getArgument ( "ref" ) .matches ( "%.ref%" )
103
+ ) and
98
104
DataFlow:: hasLocalFlowExpr ( step , this .getArgumentExpr ( "ref" ) )
99
105
)
100
106
or
You can’t perform that action at this time.
0 commit comments