Skip to content

Api get content of file for organization repository #24906

Discussion options

You must be logged in to vote

Hi @mapayares,

Thanks for being part of the GitHub Community Forum! I’ll do my best to help. 

The

:owner

is always going to be the individual or organization that actually owns the repository in question. The second URL you shared doesn’t work, as you noted, simply because the content doesn’t exist on your mike account. The URL is essentially invalid.

Additionally, API tokens are scoped to your user account. So, if your user account has only read access to the acme repository, then your API token can be granted at most read only access by applying the correct scopes. So, at most, the program can only do things that your mike account can do, but you can also restrict the program to fewer …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants