tl;dr: Deloy Private Github Repos in Gemfiles
Background: I was trying to deploy private terminalwire gems to Terminalwire.com without having to alter my Dockerfile or jump through all the hoops to mount secrets into Docker build containers.
Github has a feature called “fine-grained personal access tokens” that can be configured to provide read-only access to specific repos, but it takes a lot of digging through docs and wrong answers from LLM’s to figure it out.
I endured the pain and wrote about it at Deloy Private Github Repos in Gemfiles so you don’t have to. The same technique will work for npm files, or any other dependency manager that works with https git URLs.