Skip to content

Commit ac50cc8

Browse files
committed
update CI to have read access to private repo
1 parent 1b99467 commit ac50cc8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ jobs:
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: |
@@ -196,6 +205,10 @@ jobs:
196205
- name: Checkout repository
197206
uses: actions/checkout@v3
198207

208+
- name: Configure private repo access
209+
run: |
210+
git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"
211+
199212
- name: Echo GitHub Context Variables
200213
env:
201214
GITHUB_ACTOR: ${{ github.actor }}

.github/workflows/release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ jobs:
7070
runs-on: ${{ matrix.configs.runs-on }}
7171
steps:
7272
- uses: actions/checkout@v3
73+
74+
- name: Configure private repo access
75+
run: |
76+
git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"
77+
7378
- uses: actions/setup-go@v3
7479
with:
7580
go-version: "1.25.5"

0 commit comments

Comments
 (0)