@@ -26,20 +26,17 @@ jobs:
2626 steps :
2727 - name : Check out source
2828 uses : actions/checkout@v4
29- with :
30- # persist-credentials allows git to access private repos in same org automatically
31- persist-credentials : true
3229
3330 - name : Configure Git for private repos
3431 env :
35- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32+ CI_DKLS_GARBLING : ${{ secrets.CI_DKLS_GARBLING }}
3633 run : |
3734 # Configure git to use HTTPS
3835 git config --global url."https://github.com/".insteadOf "git@github.com:"
39- # Configure credential helper to use GITHUB_TOKEN
36+ # Configure credential helper to use PAT token with dkls/garbling access
4037 git config --global credential.helper store
41- # Store credentials for git operations
42- echo "https://${GITHUB_TOKEN }@github.com" > ~/.git-credentials
38+ # Store credentials for git operations using PAT with dkls access
39+ echo "https://${CI_DKLS_GARBLING }@github.com" > ~/.git-credentials
4340 chmod 600 ~/.git-credentials
4441 # Verify git config
4542 git config --global --list | grep -E "(url|credential)" || true
@@ -55,11 +52,11 @@ jobs:
5552
5653 - name : Test clone dkls23-rs repository
5754 env :
58- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55+ CI_DKLS_GARBLING : ${{ secrets.CI_DKLS_GARBLING }}
5956 run : |
6057 echo "Testing access to private dkls23-rs repository..."
61- # Try to clone the private repo
62- if git clone --depth 1 https://${GITHUB_TOKEN }@github.com/pushchain/dkls23-rs.git ../dkls23-rs; then
58+ # Try to clone the private repo using PAT with dkls access
59+ if git clone --depth 1 https://${CI_DKLS_GARBLING }@github.com/pushchain/dkls23-rs.git ../dkls23-rs; then
6360 echo "✅ Successfully cloned dkls23-rs repository"
6461 ls -la ../dkls23-rs/ || true
6562 else
7168
7269 - name : Build dkls23-rs dependency
7370 env :
74- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71+ CI_DKLS_GARBLING : ${{ secrets.CI_DKLS_GARBLING }}
7572 run : |
7673 echo "Building dkls23-rs dependency..."
7774 if [ ! -d "../dkls23-rs" ]; then
0 commit comments