diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index 0acd02e0..afdedcd7 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -26,6 +26,14 @@ jobs: - name: Install linux dependencies run: sudo apt-get install -y clang libssl-dev llvm libudev-dev protobuf-compiler git + - name: Set up SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.GH_TOKEN }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan github.com >> ~/.ssh/known_hosts + git config --global url."git@github.com:".insteadOf "https://github.com/" + - name: Use Git CLI for Cargo run: echo "CARGO_NET_GIT_FETCH_WITH_CLI=true" >> $GITHUB_ENV