Skip to content

Commit a1047d1

Browse files
author
Alvaro Muñoz
committed
Add new control checks using octokit/request-action
1 parent 6bf3eb7 commit a1047d1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ql/lib/codeql/actions/security/ControlChecks.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)