Skip to content

Commit 4799053

Browse files
committed
refactor: replace empty repo visibility exception handler
1 parent e543866 commit 4799053

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dashboard_action/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ def _repo_is_public() -> bool:
141141
if isinstance(private, bool):
142142
return not private
143143
except (OSError, ValueError):
144-
pass
144+
# Treat unreadable or malformed event payloads as non-public by default.
145+
return False
145146
return False
146147

147148

0 commit comments

Comments
 (0)