File tree Expand file tree Collapse file tree
ql/lib/codeql/actions/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -256,6 +256,9 @@ class AssociationActionCheck extends AssociationCheck instanceof UsesStep {
256256 or
257257 this .getCallee ( ) = "actions/github-script" and
258258 this .getArgument ( "script" ) .splitAt ( "\n" ) .matches ( "%getMembershipForUserInOrg%" )
259+ or
260+ this .getCallee ( ) = "octokit/request-action" and
261+ this .getArgument ( "route" ) .regexpMatch ( "GET.*(memberships).*" )
259262 }
260263}
261264
@@ -279,6 +282,9 @@ class PermissionActionCheck extends PermissionCheck instanceof UsesStep {
279282 or
280283 this .getCallee ( ) = "actions/github-script" and
281284 this .getArgument ( "script" ) .splitAt ( "\n" ) .matches ( "%getCollaboratorPermissionLevel%" )
285+ or
286+ this .getCallee ( ) = "octokit/request-action" and
287+ this .getArgument ( "route" ) .regexpMatch ( "GET.*(collaborators|permission).*" )
282288 }
283289}
284290
You can’t perform that action at this time.
0 commit comments