Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions safeguard to detect oversized binary files introduced by a pull request, using a repo script that inspects git diff output and fails the workflow when binaries exceed a size limit.
Changes:
- Introduce
scripts/check-pr-binaries.shto detect binary diffs and enforce a maximum blob size. - Add
.github/workflows/pr-binary-size.ymlto run the binary-size check on PRs (and manual dispatch).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| scripts/check-pr-binaries.sh | Implements binary detection via git diff --numstat and checks blob sizes at the head ref. |
| .github/workflows/pr-binary-size.yml | Runs the script in CI for PRs with a 1MB default size limit. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 6d51671. Configure here.
pjbgf
reviewed
Apr 9, 2026
Entire-Checkpoint: 3bec2ffc341d
Entire-Checkpoint: 6ad0cfc5e0ea
Entire-Checkpoint: 9459df72520c
Entire-Checkpoint: acbed376913a
Entire-Checkpoint: 21fa66faf4c8
Entire-Checkpoint: ace571abdfe6
480a697 to
f2b7ba8
Compare
pjbgf
approved these changes
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Entire-Checkpoint: 3bec2ffc341d
Note
Medium Risk
Adds a new CI workflow that can block pull requests if the binary-size detection misclassifies files or the base/head SHAs aren’t available in the checkout, potentially causing unexpected PR failures.
Overview
Introduces a new GitHub Actions workflow (
PR Binary Size) that runs on pull requests (and manually) to detect newly added/modified binary files over a configurable size limit (default 1 MiB).Adds
scripts/check-pr-binaries.sh, which diffs the PR range against the base SHA, identifies binary diffs viagit diff --numstat, checks the blob size atHEAD, and fails the job with a clear error listing any oversized files.Reviewed by Cursor Bugbot for commit 6d51671. Configure here.