File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 78
78
env :
79
79
GOPLUS_TOKEN : ${{ secrets.GOPLUS_TOKEN }}
80
80
run : |
81
+ if [ -z "$GOPLUS_TOKEN" ]; then
82
+ echo "ERROR: GOPLUS_TOKEN is not set. Skipping git configuration."
83
+ exit 1
84
+ fi
81
85
git config --global url."https://${GOPLUS_TOKEN}@github.com/".insteadOf "https://github.com/"
82
86
git config --global url."https://${GOPLUS_TOKEN}@github.com/".insteadOf "[email protected] :"
83
87
echo "Git configuration applied:"
@@ -98,9 +102,17 @@ jobs:
98
102
go env GONOSUMDB
99
103
100
104
- name : Clear Go module cache and verify access
105
+ env :
106
+ GOPLUS_TOKEN : ${{ secrets.GOPLUS_TOKEN }}
101
107
run : |
102
108
go clean -modcache
103
109
echo "Testing git access to private repo..."
110
+ echo "Token length: ${#GOPLUS_TOKEN}"
111
+ if [ -z "$GOPLUS_TOKEN" ]; then
112
+ echo "ERROR: GOPLUS_TOKEN is empty!"
113
+ else
114
+ echo "Token is set (first 4 chars: ${GOPLUS_TOKEN:0:4}...)"
115
+ fi
104
116
git ls-remote https://github.com/goplus/sb2xbp.git || echo "Git access test failed"
105
117
106
118
- name : Run unit test cases
You can’t perform that action at this time.
0 commit comments