Dear Community!
I am looking for a way to %include code from a github repository (several autocall macros). I can do so with a public repository, but what about a private repository?
We have had several discussions here on accessing git repositories directly and reading data from it (both data and code or just macro code). But all these approaches require a public repository to have the links to the data/code code working (equivalent to the raw file button in github). In this posting @ChrisHemedinger has sketched out what I actually want to achive (first code fragment) ... and what I would like to avoid (second code fragment using the gitfn_*).
The problem is ... that the link to the raw file in a private repository gets an oauth token appended, but that changes over time. And private access tokens cannot be used in the same fashion (at least by the looks of it). Instead the wise internet suggest the use of a header ("Authentication: token TOKEN") for a similar access problem using curl. In curl there is a nice option to do this ... but how to do this in SAS?
Just another piece of information: I am limited to the use of GitHub Enterprise and non public repositories. It could very well be that I am barking up the wrong tree ... maybe ssl authentication is the way to go. So, to cut it short:
Does anybody have any experience with accessing non public github repositories under SAS and using %include to source in autocall macros? (and is willing to share his expertise of course 😃)
Regards
fja
... View more