We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1458434 commit 645177cCopy full SHA for 645177c
ql/src/Security/CWE-094/UntrustedCheckout.ql
@@ -25,7 +25,10 @@ class ActorCheckStmt extends IfStmt {
25
* An If node that contains a `label` check
26
*/
27
class LabelCheckStmt extends IfStmt {
28
- LabelCheckStmt() { this.getCondition().regexpMatch(".*github\\.event\\.pull_request\\.labels.*") }
+ LabelCheckStmt() {
29
+ this.getCondition().regexpMatch(".*github\\.event\\.pull_request\\.labels.*") or
30
+ this.getCondition().regexpMatch(".*github\\.event\\.label\\.name.*")
31
+ }
32
}
33
34
from WorkflowStmt w, JobStmt job, StepUsesExpr checkoutStep
0 commit comments