File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ inputs:
35
35
app_pem :
36
36
description : ' GitHub App PEM'
37
37
required : false
38
+ goprivate :
39
+ description : ' Comma-separated list of module path prefixes for GOPRIVATE'
40
+ required : false
41
+ default : ' '
38
42
39
43
outputs :
40
44
token :
71
75
sudo git config --system --add safe.directory '*'
72
76
else
73
77
git config --system --add safe.directory '*'
74
- fi
78
+ fi
79
+
80
+ - name : Configure Git for private repos
81
+ if : inputs.github_app_auth != 'false'
82
+ shell : bash
83
+ run : |
84
+ git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
85
+
86
+ - name : Configure Go private modules
87
+ if : inputs.goprivate != ''
88
+ shell : bash
89
+ run : |
90
+ echo "GOPRIVATE=${{ inputs.goprivate }}" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments