@@ -76,6 +76,46 @@ func TestUntrustedContextVariables(t *testing.T) {
76
76
variable : "github.event.commits[0].id" ,
77
77
expected : false ,
78
78
},
79
+ {
80
+ name : "alert resolved by name" ,
81
+ variable : "github.event.secret_scanning_alert.alert.resolved_by.name" ,
82
+ expected : true ,
83
+ },
84
+ {
85
+ name : "alert resolved by email" ,
86
+ variable : "github.event.secret_scanning_alert.alert.resolved_by.name" ,
87
+ expected : true ,
88
+ },
89
+ {
90
+ name : "alert push_protection_bypassed_by name" ,
91
+ variable : "github.event.secret_scanning_alert.alert.push_protection_bypassed_by.name" ,
92
+ expected : true ,
93
+ },
94
+ {
95
+ name : "alert push_protection_bypassed_by email" ,
96
+ variable : "github.event.secret_scanning_alert.alert.push_protection_bypassed_by.email" ,
97
+ expected : true ,
98
+ },
99
+ {
100
+ name : "alert push_protection_bypass_request_reviewer name" ,
101
+ variable : "github.event.secret_scanning_alert.alert.push_protection_bypass_request_reviewer.name" ,
102
+ expected : true ,
103
+ },
104
+ {
105
+ name : "alert push_protection_bypass_request_reviewer email" ,
106
+ variable : "github.event.secret_scanning_alert.alert.push_protection_bypass_request_reviewer.email" ,
107
+ expected : true ,
108
+ },
109
+ {
110
+ name : "alert push_protection_bypass_request_reviewer_comment" ,
111
+ variable : "github.event.secret_scanning_alert.alert.push_protection_bypass_request_reviewer_comment" ,
112
+ expected : true ,
113
+ },
114
+ {
115
+ name : "alert push_protection_bypass_request_comment" ,
116
+ variable : "github.event.secret_scanning_alert.alert.push_protection_bypass_request_comment" ,
117
+ expected : true ,
118
+ },
79
119
}
80
120
for _ , tt := range tests {
81
121
t .Run (tt .name , func (t * testing.T ) {
0 commit comments