@@ -76,22 +76,6 @@ private predicate textEvent(string context) {
76
76
)
77
77
}
78
78
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]
96
80
private predicate branchEvent ( string context ) {
97
81
exists ( string reg |
@@ -194,7 +178,19 @@ private predicate jsonEvent(string context) {
194
178
reg =
195
179
[
196
180
// json
197
- "github\\.event" ,
181
+ "github\\.event" , "github\\.event\\.client_payload" , "github\\.event\\.comment" ,
182
+ "github\\.event\\.commits" , "github\\.event\\.discussion" , "github\\.event\\.head_commit" ,
183
+ "github\\.event\\.head_commit\\.author" , "github\\.event\\.head_commit\\.committer" ,
184
+ "github\\.event\\.inputs" , "github\\.event\\.issue" , "github\\.event\\.merge_group" ,
185
+ "github\\.event\\.merge_group\\.committer" , "github\\.event\\.pull_request" ,
186
+ "github\\.event\\.pull_request\\.head" , "github\\.event\\.pull_request\\.head\\.repo" ,
187
+ "github\\.event\\.pages" , "github\\.event\\.review" , "github\\.event\\.workflow" ,
188
+ "github\\.event\\.workflow_run" , "github\\.event\\.workflow_run\\.head_branch" ,
189
+ "github\\.event\\.workflow_run\\.head_commit" ,
190
+ "github\\.event\\.workflow_run\\.head_commit\\.author" ,
191
+ "github\\.event\\.workflow_run\\.head_commit\\.committer" ,
192
+ "github\\.event\\.workflow_run\\.head_repository" ,
193
+ "github\\.event\\.workflow_run\\.pull_requests" ,
198
194
]
199
195
|
200
196
Utils:: normalizeExpr ( context ) .regexpMatch ( Utils:: wrapRegexp ( reg ) )
0 commit comments