Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Action is pulling in binary files in a repo

See original GitHub issue

🐞 Describe the bug Syncing a file in a repo that has binary files will include those binary files in the PR and also modifies them.

Bug is recreated in this repo:

Here is the PR:

Please note this PR was triggered by another repo just to prove that it does occur in normal usage instead of just in the repo it was run in as I originally reported.

📚 To Reproduce

  • authenticate using a Token from a GitHub App installation

  • Add a binary file to a repo.

To create a basic binary file run the following command in bash

echo "00000000: ff" | xxd -r - binary.dat
  • Run the action and the binary file will be apart of the PR even if it is not part of the configuration.

💡 Expected behavior

I expect only the files identified to show up in the repo.

🖼️ Screenshots

Screen shot of files in PR in case it dissapears.


⚙️ Environment We pin Git SHA

📋 Additional context

It converted a basic binary file from in hex, so I imagine there might be an issue with binary files and this action.

FF 0F to EF BF BD 0F

I also ran into an issue with a larger binary file, when using an image of about 960kb ran into the following error: stdout maxBuffer length exceeded

Some test runs:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

CalvinRodocommented, Feb 22, 2022

So just merged the latest action and the problem is now resolved, thanks for all the work folks!

BetaHuhncommented, Feb 19, 2022

Merged and released as v1.17.4. Thanks again @alvarezfr!

Read more comments on GitHub >

github_iconTop Results From Across the Web

git handle untracked binary files - Stack Overflow
One possible solution could be to keep the binary files on a separate branch (possibly orphaned using git checkout --orphan <branchname> ...
Read more >
How to manage binary blobs with Git -
git-portal​​ It copies big binary files to local or remote storage, replacing them with symlinks that you can commit along with the rest...
Read more >
downloading binary file associated with a release (an "asset")
It seems that gh is able to successfully read the JSON information about a release -- including information about any assets which are...
Read more >
How do you deal with binary files? : r/git - Reddit
You can use git-annex to have Git track the files without actually storing them in the repository.
Read more >
Reduce Binary File Storage Repo Size? - How to Use GitLab
Hi, I have a GitLab Repo where I am storing some binary files. ... actions in the guide would keep the latest version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found