8181 with :
8282 submodules : recursive
8383
84+ - name : Configure private repo access
85+ run : |
86+ git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"
87+
8488 - name : Install Foundry
8589 uses : foundry-rs/foundry-toolchain@v1
8690 with :
@@ -138,6 +142,11 @@ jobs:
138142 uses : actions/checkout@v3
139143 with :
140144 submodules : recursive
145+
146+ - name : Configure private repo access
147+ run : |
148+ git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"
149+
141150 - name : Check if Docker Hub credentials exist
142151 id : check-docker-credentials
143152 run : |
@@ -179,6 +188,7 @@ jobs:
179188 make ${{ matrix.args }}
180189 env :
181190 GOPATH : /home/runner/go
191+ GITHUB_TOKEN : ${{ secrets.PRIVATE_REPO_TOKEN }}
182192
183193 # -------------------------------------------------------------------------- #
184194 # Docker Container Build and Push #
@@ -196,6 +206,10 @@ jobs:
196206 - name : Checkout repository
197207 uses : actions/checkout@v3
198208
209+ - name : Configure private repo access
210+ run : |
211+ git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"
212+
199213 - name : Echo GitHub Context Variables
200214 env :
201215 GITHUB_ACTOR : ${{ github.actor }}
@@ -236,6 +250,8 @@ jobs:
236250 - name : Build Docker image
237251 run : |
238252 make build-docker
253+ env :
254+ GITHUB_TOKEN : ${{ secrets.PRIVATE_REPO_TOKEN }}
239255
240256 - if : ${{ env.PUSH_DOCKER_IMAGE == 'true' }}
241257 name : Authenticate to GitHub Container Registry
0 commit comments