Zipping Git-LFS files using GitHub Actions corrupts them

I have workflow code running which would zip certain files and folders and attach them as assets to a release, all of that works, except zipping files corrupts binaries handled by Git-LFS.

Is there any way to work around this?

I have fixed this by setting lfs: ‘true’ in the Checkout Action as per its documentation.