File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,14 @@ default:
99 NIX_CONFIG_FILE=~/.config/nix/nix.conf
1010 mkdir -p "$(dirname "$NIX_CONFIG_FILE")"
1111 {
12- echo "access-tokens = ${CI_SERVER_HOST}=PAT:${CI_GROUP_TOKEN}"
12+ echo "access-tokens = ${CI_SERVER_HOST}=PAT:${CI_GROUP_TOKEN} github.com=${GH_READ_METACRAFT_PRIVATE_REPOS} "
1313 } > "$NIX_CONFIG_FILE"
1414
15+ # Rewrite SSH URLs to HTTPS with token for submodule cloning
16+ # (e.g. tree-sitter-nim uses SSH URL in .gitmodules)
17+ git config --global url."https://oauth2:${GH_READ_METACRAFT_PRIVATE_REPOS}@github.com/".insteadOf "git@github.com:"
18+ git config --global url."https://oauth2:${GH_READ_METACRAFT_PRIVATE_REPOS}@github.com/".insteadOf "ssh://git@github.com/"
19+
1520stages :
1621 - lint
1722 - build
You can’t perform that action at this time.
0 commit comments