#supergit auth
1 messages ยท Page 1 of 1 (latest)
definitely in scope ๐
My goal is to offer be a 100% feature-complete git API ๐ (one day)
a very good question
I got this to work using the principle of most jenkyness, just to get it working, I am almost afraid to paste the code snippet because its a massive security risk ๐ผ
In brighter news I have a "real world" pipeline that is a module that builds a static site, uses another module to inject some additional content into that site, and deploys to github pages using git (one day using supergit!)
It was also directly translated from a "classic dagger" program, so I finally have a real world side-by side comparison.
Feels great, except for the hacky auth thing ๐
Did you use the Secret type? You can pass those from the CLI
The slight inconvenience is that you have to pass everything explicitly, since Dagger Functions can't access your machine's environment variables or filesystem implicitly
I will iterate on this a bit - I got this working by not using secrets basically - I have a deploy key in this repo (its a private repo) and the module will never be published, so I just copied the file in.
Yeah definitely a hack ๐ That secret will stay in your cache
But should not be hard to upgrade to a secret, they're pretty easy
Yeah I am not proud of the implementation, but getting something working gives me some fuel to keep hacking haha!