This seems like a simple use case, but trying to directly import a csv file in a private Github repo. I read the Secrets documentation regarding a Personal Access Token, but I don’t really understand how to access the data directly and assign it to a variable, for example.
Is there a notebook that anyone could point to that demonstrates how to do this? I get 404 errors meaning the authentication isn’t happening. Trying undefined && Secret("GITHUB_ACCESS_TOKEN"), and it returns “undefined” which is expected behavior to obfuscate the PAT, but it’s not clear to me how a fetch or using the d3.csv() function actually sends that secret to authenticate.
in the headers of the fetch request. (fetch is the browser-standard function that d3.csv uses behind-the-scenes.) That notebook assumes the response is JSON, so my example for you builds on that to fetch a CSV.