|
|
|
|
|
by gbear0
1872 days ago
|
|
Is there not a better solution for this? We have this baked into our docker builds and it irks me that we have to copy personal credentials into a docker build so we can use git to pull modules and build.
Is everyone actually doing this, or do you setup read-only tokens per private module, or anything else? |
|
- We don't need this dance in our Dockerfiles / build scripts / dev machines anymore. We have a baked GOPROXY / GONOSUMDB in our build image and developers configure the same proxy (via `go env -w`) locally.
- We pull all packages over the proxy, so builds are faster / use less bandwidth / still mostly work when GitHub goes down.
- SCAs get more difficult; the credentials the proxy has are more limited than any individual developer's GitLab tokens / credentials, and owning the proxy is going to be harder than a single developer's laptop.
[0] https://docs.gomods.io/