88 type : string
99 default : " matrixorigin/matrixone"
1010 required : false
11+ secrets :
12+ SYNC_APP_KEY :
13+ description : " Token for checkout (optional; falls back to GITHUB_TOKEN)"
14+ required : false
1115
1216env :
1317 mo_reuse_enable_checker : true
@@ -23,13 +27,15 @@ jobs:
2327 - name : checkout head
2428 uses : actions/checkout@v6
2529 with :
30+ token : ${{ secrets.SYNC_APP_KEY || github.token }}
2631 path : ./head
2732 repository : ${{ github.event.pull_request.head.repo.full_name }}
2833 ref : ${{ github.event.pull_request.head.ref }}
2934
3035 - name : checkout upstream
3136 uses : actions/checkout@v6
3237 with :
38+ token : ${{ secrets.SYNC_APP_KEY || github.token }}
3339 path : ./upstream
3440 repository : ${{ github.event.pull_request.base.repo.full_name }}
3541 ref : ${{ github.event.pull_request.base.ref }}
8389 - name : Clone test-tool repository
8490 uses : actions/checkout@v6
8591 with :
92+ token : ${{ secrets.SYNC_APP_KEY || github.token }}
8693 repository : matrixorigin/mo-tester
8794 path : ./mo-tester
8895 ref : main
@@ -229,6 +236,7 @@ jobs:
229236 - name : Checkout Head
230237 uses : actions/checkout@v6
231238 with :
239+ token : ${{ secrets.SYNC_APP_KEY || github.token }}
232240 path : ./head
233241 repository : ${{ github.event.pull_request.head.repo.full_name }}
234242 ref : ${{ github.event.pull_request.head.ref }}
@@ -243,6 +251,7 @@ jobs:
243251 - name : Checkout Upstream Release
244252 uses : actions/checkout@v6
245253 with :
254+ token : ${{ secrets.SYNC_APP_KEY || github.token }}
246255 path : ./upstream
247256 repository : ${{ inputs.release-repo }}
248257 # ref: ${{ steps.get-latest-release.outputs.tag }} // restore to this line after new release includes d4051aebd6 - update bvt cases (#23317)
@@ -297,6 +306,7 @@ jobs:
297306 - name : Clone test-tool repository
298307 uses : actions/checkout@v6
299308 with :
309+ token : ${{ secrets.SYNC_APP_KEY || github.token }}
300310 repository : matrixorigin/mo-tester
301311 path : ./mo-tester
302312 ref : 3.0-dev
@@ -363,6 +373,7 @@ jobs:
363373 - name : Clone test-tool repository for Head
364374 uses : actions/checkout@v6
365375 with :
376+ token : ${{ secrets.SYNC_APP_KEY || github.token }}
366377 repository : matrixorigin/mo-tester
367378 path : ./mo-tester-head
368379 ref : main
0 commit comments