Fix not reporting test results on push to main#921
Conversation
|
Claude finished @eliykat's task —— View job Code Review Complete
Summary of ChangesThis PR fixes a bug where test results were not being uploaded for The fix adds an explicit allowlist of event types ( Critical Issues FoundFinding 1: Potential security consideration documented but implementation looks correct (💭) The comment states "PRs from the repository and all other events are OK" - this is technically accurate given the conditional logic. However, the phrase "all other events" could be misleading since the workflow only triggers on specific events defined at the top ( Good Practices Observed
PR Metadata QualityTitle: Clear and descriptive ✓ Description:
VerdictThis is a clean, straightforward fix that correctly addresses the reported issue. The implementation is sound and the logic properly handles the security concern about fork PRs while allowing safe event types to upload test results. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #921 +/- ##
=======================================
Coverage 16.01% 16.01%
=======================================
Files 67 67
Lines 2791 2791
Branches 481 481
=======================================
Hits 447 447
Misses 2306 2306
Partials 38 38 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Great job! No new security vulnerabilities introduced in this pull request |

🎟️ Tracking
N/A
📔 Objective
Test results are only uploaded to Github if
github.event.pull_request.head.repo.full_name == github.repository. The intention of that conditional is to skip PRs from forks. However, when this triggers for other events (pushandworkflow_dispatchin this case),github.event.pull_requestis undefined and the job is incorrectly skipped.This adds an explicit allowlist of other events that may trigger this job. As discussed on Slack, they do not pose the same concerns about permissions as you generally need write permissions in the repo to trigger them.
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes