We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8f7981 commit 922ae57Copy full SHA for 922ae57
1 file changed
ql/lib/codeql/actions/security/ControlChecks.qll
@@ -165,7 +165,7 @@ class LabelIfCheck extends LabelCheck instanceof If {
165
condition = normalizeExpr(this.getCondition()) and
166
(
167
// eg: contains(github.event.pull_request.labels.*.name, 'safe to test')
168
- condition.regexpMatch("(^|[^!])contains\\(\\s*github\\.event\\.pull_request\\.labels\\b.*")
+ condition.regexpMatch(".*(^|[^!])contains\\(\\s*github\\.event\\.pull_request\\.labels\\b.*")
169
or
170
// eg: github.event.label.name == 'safe to test'
171
condition.regexpMatch(".*\\bgithub\\.event\\.label\\.name\\s*==.*")
0 commit comments