0

What is the permission required to upload an asset to a release via a github app? (no OAuth)

I need to POST to url like https://{{git_url}}/api/uploads/repos/{{owner}}/{{repo}}/releases/{{releaseNumber}}/assets?name={{assetName}}

In the permission page there is no POST to /repos/:owner/:repo/releases/:release_id/assets

Im on GitHub Enterprise 2.22.17.


Currently I am getting

502 Bad Gateway {
  message: 'Error uploading to https://media.{{git_url}}/releases/{{releaseNumber}}/files: 404',
  request_id: '******'
}

1 Answers1

0

Unclear to me as well. I do get this error from a GitHub Actions step trying to deploy something to GitHub Releases, until I created a custom Personal Access Token that has full repo permissions, and nothing else selected:

enter image description here

I haven't yet tried deselecting any of those to get the smallest set required.

GitHub Enterprise 3.0.13 here.

dbreaux
  • 4,982
  • 1
  • 25
  • 64
  • Thank you, yeah I assumed, it would only be possible with OAuth scopes. Documentations are definitely not clear. I asked the question here as well: https://github.community/t/github-app-permission-required-to-release-an-asset/192879 – Lina Sharifi Aug 16 '21 at 15:11