Skip to content

Commit be8b11c

Browse files
committed
Fix for GHES without this new field
1 parent 47fb7b8 commit be8b11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

list_secret_scanning_alerts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def make_result(
4343
"publicly_leaked": alert.get("publicly_leaked"),
4444
"push_protection_bypass_request_reviewer": (
4545
alert["push_protection_bypass_request_reviewer"]["login"]
46-
if alert["push_protection_bypass_request_reviewer"] is not None
46+
if alert.get("push_protection_bypass_request_reviewer") is not None
4747
else None
4848
),
4949
"push_protection_bypass_request_reviewer_comment": alert.get(

0 commit comments

Comments
 (0)