I have a private repo in my org and I need to provide access. I want to be able to access a file through a GET request (the browser). I do NOT have a terminal or curl or any other tools.
I created a dummy account that I linked to my org. I went to https://github.com/settings/tokens and added one.
Then I tried the following URLS
- https://raw.githubusercontent.com/ORG/REPO/master/path/to/file.json?private_token=26cb4d8a30ca2
- https://raw.githubusercontent.com/ORG/REPO/master/path/to/file.json?token=26cb4d8a30ca2
which does not work. It only seems to work with the generated token that you get when you click on "raw" on the github gui. Unfortunately this token expires quickly so it does not work for my application.
How do I access private resource on github with an access token through a URL ?