I'm trying to download assets from a release on a private repository.
My current code would be:
run: gh release download release -R Hostname/RepoName -D
This only works if the repository is public. Is there a way to get the assets from a private repository?
I think you should provide an Access token of the private repo/orgs. From the doc of the CLI tool:
something like:
where
GH_API_TOKEN
is a valid PAT for access to theHostname/RepoName
repo.