My problem was I was trying to download from the URL I mentioned but to get the desired response I had to add "raw" to the beginning of the url. For example: "https://raw.github.build.company.com..." Additionally I ran into another problem when I figured out that the exe file was being managed by lfs on my github repo. When making an api request for a file managed by lfs it returns a few details including the file size and sha256 not the desired file's contents. To resolve this I followed this guide https://gist.github.com/fkraeutli/66fa741d9a8c2a6a238a01d17ed0edc5.