File tree Expand file tree Collapse file tree 5 files changed +14
-0
lines changed
Expand file tree Collapse file tree 5 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 2121 uses : actions/setup-go@v5
2222 with :
2323 go-version : ${{ matrix.go-version }}
24+ - name : (Windows) Enable pulling Go modules from private sourcegraph/sourcegraph
25+ if : runner.os == 'Windows'
26+ run : git config --global url."https://$env:PRIVATE_TOKEN@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
27+ - name : (Default) Enable pulling Go modules from private sourcegraph/sourcegraph
28+ if : runner.os != 'Windows'
29+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
2430 - run : |
2531 go test -race -v ./...
2632 go test -v ./...
Original file line number Diff line number Diff line change 1717 uses : actions/setup-go@v5
1818 with :
1919 go-version : 1.22.5
20+ - name : Enable pulling Go modules from private sourcegraph/sourcegraph
21+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
2022 - run : ./dev/go-lint.sh
Original file line number Diff line number Diff line change 2020 uses : actions/setup-go@v5
2121 with :
2222 go-version : 1.22.5
23+ - name : Enable pulling Go modules from private sourcegraph/sourcegraph
24+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
2325 - name : Check GoReleaser config
2426 uses : goreleaser/goreleaser-action@v5
2527 with :
Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ jobs:
182182 uses : actions/setup-go@v5
183183 with :
184184 go-version : 1.22.5
185+ - name : Enable pulling Go modules from private sourcegraph/sourcegraph
186+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
185187 - run : go test ./...
186188 - run : go test -race -v ./...
187189 - run : echo "${DOCKER_PASSWORD}" | docker login -u=$DOCKER_USERNAME --password-stdin
Original file line number Diff line number Diff line change 1616 chmod +x /usr/local/bin/src
1717 - name : Set directory to safe for git
1818 run : git config --global --add safe.directory $GITHUB_WORKSPACE
19+ - name : Enable pulling Go modules from private sourcegraph/sourcegraph
20+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
1921 - name : Generate SCIP data
2022 run : scip-go
2123
You can’t perform that action at this time.
0 commit comments