Skip to content

Commit 4c148ac

Browse files
committed
Update CI to use separate deploy keys for each private dependency
- Use CLAUDE_MCP_TOOLS_DEPLOY_KEY for ClaudeMCPTools.jl - Use LLMBENCH_SIMPLE_DEPLOY_KEY for LLMBenchSimple.jl - Configure SSH with host aliases for each repository - Use git URL rewriting to map to correct SSH hosts
1 parent d9bfad3 commit 4c148ac

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/CI.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,32 @@ jobs:
3636
mkdir -p ~/.ssh
3737
ssh-keyscan github.com >> ~/.ssh/known_hosts
3838
39-
# Write deploy key to file
40-
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/deploy_key
41-
chmod 600 ~/.ssh/deploy_key
39+
# Write deploy keys to files
40+
echo "${{ secrets.CLAUDE_MCP_TOOLS_DEPLOY_KEY }}" > ~/.ssh/claude_mcp_tools_key
41+
chmod 600 ~/.ssh/claude_mcp_tools_key
4242
43-
# Configure git to use the deploy key
44-
git config --global core.sshCommand "ssh -i ~/.ssh/deploy_key"
43+
echo "${{ secrets.LLMBENCH_SIMPLE_DEPLOY_KEY }}" > ~/.ssh/llmbench_simple_key
44+
chmod 600 ~/.ssh/llmbench_simple_key
45+
46+
# Configure SSH to use different keys for different repos
47+
cat >> ~/.ssh/config << 'EOF'
48+
Host github-claudemcp
49+
HostName github.com
50+
User git
51+
IdentityFile ~/.ssh/claude_mcp_tools_key
52+
IdentitiesOnly yes
53+
54+
Host github-llmbench
55+
HostName github.com
56+
User git
57+
IdentityFile ~/.ssh/llmbench_simple_key
58+
IdentitiesOnly yes
59+
EOF
60+
chmod 600 ~/.ssh/config
61+
62+
# Configure git to use the appropriate hosts
63+
git config --global url."git@github-claudemcp:JuliaComputing/ClaudeMCPTools.jl.git".insteadOf "git@github.com:JuliaComputing/ClaudeMCPTools.jl.git"
64+
git config --global url."git@github-llmbench:JuliaComputing/LLMBenchSimple.jl.git".insteadOf "git@github.com:JuliaComputing/LLMBenchSimple.jl.git"
4565
- uses: julia-actions/julia-buildpkg@v1
4666
with:
4767
git_cli: true

0 commit comments

Comments
 (0)