Skip to content

Commit addedd0

Browse files
author
Alvaro Muñoz
committed
Comment out unused source
1 parent 4be3011 commit addedd0

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

ql/lib/codeql/actions/dataflow/FlowSources.qll

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,22 @@ private predicate textEvent(string context) {
7676
)
7777
}
7878

79-
bindingset[context]
80-
private predicate repoNameEvent(string context) {
81-
exists(string reg |
82-
reg =
83-
[
84-
// repo name
85-
// Owner: All characters must be either a hyphen (-) or alphanumeric
86-
// Repo: All code points must be either a hyphen (-), an underscore (_), a period (.), or an ASCII alphanumeric code point
87-
"github\\.event\\.workflow_run\\.pull_requests\\[[0-9]+\\]\\.head\\.repo\\.name", // repo name
88-
"github\\.event\\.workflow_run\\.head_repository\\.name", // repo name
89-
"github\\.event\\.workflow_run\\.head_repository\\.full_name", // nwo
90-
]
91-
|
92-
Utils::normalizeExpr(context).regexpMatch(Utils::wrapRegexp(reg))
93-
)
94-
}
95-
79+
// bindingset[context]
80+
// private predicate repoNameEvent(string context) {
81+
// exists(string reg |
82+
// reg =
83+
// [
84+
// // repo name
85+
// // Owner: All characters must be either a hyphen (-) or alphanumeric
86+
// // Repo: All code points must be either a hyphen (-), an underscore (_), a period (.), or an ASCII alphanumeric code point
87+
// "github\\.event\\.workflow_run\\.pull_requests\\[[0-9]+\\]\\.head\\.repo\\.name", // repo name
88+
// "github\\.event\\.workflow_run\\.head_repository\\.name", // repo name
89+
// "github\\.event\\.workflow_run\\.head_repository\\.full_name", // nwo
90+
// ]
91+
// |
92+
// Utils::normalizeExpr(context).regexpMatch(Utils::wrapRegexp(reg))
93+
// )
94+
// }
9695
bindingset[context]
9796
private predicate branchEvent(string context) {
9897
exists(string reg |

0 commit comments

Comments
 (0)