File uploaded to assets through API has different permissions


I try to upload zip file as assets, everything works fine but for some reason zip file has permissions different if I upload file manually through edit release and drag&drop.

This is command I used:

curl -H "Authorization: token <TOKEN>" -H "Content-Type: multipart/form-data;" -H "Content-Type: application/zip" --data-binary @/Users/appsflyer/workspace/ios_sdk_framework_test/AppsFlyerLib/ --fail --silent --show-error """?"

As Response I get back following JOSN:

“url”: “”,
“id”: 3259449,
“name”: “”,
“label”: “”,
“uploader”: {
“login”: “af-builder”,
“id”: 22172769,
“avatar_url”: “”,
“gravatar_id”: “”,
“url”: “”,
“html_url”: “”,
“followers_url”: “”,
“following_url”: “{/other_user}”,
“gists_url”: “{/gist_id}”,
“starred_url”: “{/owner}{/repo}”,
“subscriptions_url”: “”,
“organizations_url”: “”,
“repos_url”: “”,
“events_url”: “{/privacy}”,
“received_events_url”: “”,
“type”: “User”,
“site_admin”: false
“content_type”: “multipart/form-data;”,
“state”: “uploaded”,
“size”: 849832,
“download_count”: 0,
“created_at”: “2017-02-23T16:10:25Z”,
“updated_at”: “2017-02-23T16:10:28Z”,
“browser_download_url”: “

This file I created for Carthage (iOS) and Carthage fails to fetch it. See:

I found that if:

  1. I download file manually from github
  2. delete it from release
  3. upload the same file through drag&drop
    Everything starts to work (from Carthage side).

So the reason is: Carthage don’t have permissions to download zip file for some reason through their API.

So where is a problem, do I something wrong?