File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ to set up the secret in the repo's settings. After adding a secret like
159
159
It's possible to install modules from private GitHub repositories without using
160
160
your own proxy. You'll need to add a
161
161
[personal access token](https://github.com/settings/tokens) as a secret
162
- environment variable for this to work.
162
+ environment variable, as well as configure
163
+ [GOPRIVATE](https://golang.org/pkg/cmd/go/#hdr-Module_configuration_for_non_public_modules).
163
164
164
165
` ` ` yaml
165
166
- name: Configure git for private modules
@@ -168,6 +169,13 @@ environment variable for this to work.
168
169
run: git config --global url."https://YOUR_GITHUB_USERNAME:${TOKEN}@github.com".insteadOf "https://github.com"
169
170
` ` `
170
171
172
+ ` ` ` yaml
173
+ env:
174
+ GOPRIVATE: "*.company.com"
175
+ jobs:
176
+ [...]
177
+ ` ` `
178
+
171
179
# ### How do I install Linux packages?
172
180
173
181
Use `sudo apt`, making sure to only run the step on Linux :
You can’t perform that action at this time.
0 commit comments