Skip to content

Commit 2e29f96

Browse files
committed
ci: use SUBMODULE_PAT for private submodule checkout
1 parent 6f91340 commit 2e29f96

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
submodules: recursive
20+
token: ${{ secrets.SUBMODULE_PAT || secrets.GITHUB_TOKEN }}
2021

2122
- uses: ./.github/actions/setup-bun
2223

.github/workflows/local-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
submodules: recursive
17+
token: ${{ secrets.SUBMODULE_PAT || secrets.GITHUB_TOKEN }}
1718

1819
- uses: ./.github/actions/setup-bun
1920

.github/workflows/sync-upstream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
fetch-depth: 0
3737
submodules: recursive
38-
token: ${{ secrets.GITHUB_TOKEN }}
38+
token: ${{ secrets.SUBMODULE_PAT || secrets.GITHUB_TOKEN }}
3939

4040
- name: Configure git + upstream remote
4141
run: |

0 commit comments

Comments
 (0)