Skip to content

Commit 3eba17e

Browse files
committed
add settings-check and SYNC_APP_KEY
1 parent ac15043 commit 3eba17e

11 files changed

Lines changed: 202 additions & 1 deletion

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: MatrixOne CI
44
on:
55
workflow_call:
66
secrets:
7+
SYNC_APP_KEY:
8+
description: "Token for checkout (optional; falls back to GITHUB_TOKEN)"
9+
required: false
710
S3ENDPOINT:
811
description: "S3ENDPOINT For Test"
912
required: true
@@ -77,6 +80,7 @@ jobs:
7780
- uses: actions/checkout@v6
7881
with:
7982
fetch-depth: "3"
83+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
8084
repository: ${{ github.event.pull_request.head.repo.full_name }}
8185
ref: ${{ github.event.pull_request.head.ref }}
8286
- name: Set up Go
@@ -174,6 +178,7 @@ jobs:
174178
- uses: actions/checkout@v6
175179
with:
176180
fetch-depth: "3"
181+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
177182
repository: ${{ github.event.pull_request.head.repo.full_name }}
178183
ref: ${{ github.event.pull_request.head.ref }}
179184
- name: Set up Go
@@ -212,6 +217,7 @@ jobs:
212217
- uses: actions/checkout@v6
213218
with:
214219
fetch-depth: "3"
220+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
215221
repository: ${{ github.event.pull_request.head.repo.full_name }}
216222
ref: ${{ github.event.pull_request.head.ref }}
217223
- uses: thiagodnf/yaml-schema-checker@v0.0.12

.github/workflows/e2e-compose.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: MatrixOne Compose Test
22

33
on:
44
workflow_call:
5+
secrets:
6+
SYNC_APP_KEY:
7+
description: "Token for checkout (optional; falls back to GITHUB_TOKEN)"
8+
required: false
59

610
jobs:
711
bvt-docker-compose-push:
@@ -25,6 +29,7 @@ jobs:
2529
uses: actions/checkout@v6
2630
with:
2731
fetch-depth: "3"
32+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
2833
repository: ${{ github.event.pull_request.head.repo.full_name }}
2934
ref: ${{ github.event.pull_request.head.ref }}
3035
- name: Set up Go And Java
@@ -110,6 +115,7 @@ jobs:
110115
# Please update the following actions to use Node.js 16: actions/checkout@v3
111116
uses: actions/checkout@v6
112117
with:
118+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
113119
repository: matrixorigin/mo-tester
114120
path: ./mo-tester
115121
ref: main
@@ -195,6 +201,7 @@ jobs:
195201
uses: actions/checkout@v6
196202
with:
197203
fetch-depth: "3"
204+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
198205
repository: ${{ github.event.pull_request.head.repo.full_name }}
199206
ref: ${{ github.event.pull_request.head.ref }}
200207
- name: Set up Go And Java
@@ -267,6 +274,7 @@ jobs:
267274
- name: Clone test-tool repository
268275
uses: actions/checkout@v6
269276
with:
277+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
270278
repository: matrixorigin/mo-tester
271279
path: ./mo-tester
272280
ref: main

.github/workflows/e2e-standalone.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: MatrixOne e2e CI(Standalone)
22

33
on:
44
workflow_call:
5+
secrets:
6+
SYNC_APP_KEY:
7+
description: "Token for checkout (optional; falls back to GITHUB_TOKEN)"
8+
required: false
59

610
jobs:
711
bvt-linux-x86:
@@ -15,6 +19,7 @@ jobs:
1519
uses: actions/checkout@v6
1620
with:
1721
fetch-depth: "3"
22+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
1823
path: ./head
1924
repository: ${{ github.event.pull_request.head.repo.full_name }}
2025
ref: ${{ github.event.pull_request.head.ref }}
@@ -46,6 +51,7 @@ jobs:
4651
- name: Clone test-tool repository
4752
uses: actions/checkout@v6
4853
with:
54+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
4955
repository: matrixorigin/mo-tester
5056
path: ./mo-tester
5157
ref: main
@@ -149,6 +155,7 @@ jobs:
149155
- name: checkout head
150156
uses: actions/checkout@v6
151157
with:
158+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
152159
path: ./head
153160
repository: ${{ github.event.pull_request.head.repo.full_name }}
154161
ref: ${{ github.event.pull_request.head.ref }}
@@ -180,6 +187,7 @@ jobs:
180187
- name: Clone test-tool repository
181188
uses: actions/checkout@v6
182189
with:
190+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
183191
repository: matrixorigin/mo-tester
184192
path: ./mo-tester
185193
ref: main
@@ -238,6 +246,7 @@ jobs:
238246
uses: actions/checkout@v6
239247
with:
240248
fetch-depth: "3"
249+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
241250
path: ./head
242251
repository: ${{ github.event.pull_request.head.repo.full_name }}
243252
ref: ${{ github.event.pull_request.head.ref }}
@@ -273,6 +282,7 @@ jobs:
273282
- name: Clone test-tool repository
274283
uses: actions/checkout@v6
275284
with:
285+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
276286
repository: matrixorigin/mo-tester
277287
path: ./mo-tester
278288
ref: main

.github/workflows/e2e-upgrade.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
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

1216
env:
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 }}
@@ -83,6 +89,7 @@ jobs:
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

.github/workflows/image-build.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ on:
3434
AWS_ROLE:
3535
description: 'AWS_ROLE'
3636
required: false
37+
SYNC_APP_KEY:
38+
description: "Token for checkout (optional; falls back to GITHUB_TOKEN)"
39+
required: false
3740

3841
permissions:
3942
id-token: write
@@ -49,7 +52,8 @@ jobs:
4952
uses: actions/checkout@v6
5053
with:
5154
fetch-depth: 1
52-
55+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
56+
5357
# # github OIDC https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services
5458
# - name: Configure AWS credentials
5559
# uses: aws-actions/configure-aws-credentials@v4 # More information on this action can be found below in the 'AWS Credentials' section

.github/workflows/merge-trigger-standalone.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
WECHAT_MO_CHECKIN_BOT_WEBHOOK:
77
description: "WECHAT_MO_CHECKIN_BOT_WEBHOOK"
88
required: true
9+
SYNC_APP_KEY:
10+
description: "Token for checkout (optional; falls back to GITHUB_TOKEN)"
11+
required: false
912

1013
jobs:
1114
pessimistic-bvt-darwin-arm64:
@@ -20,6 +23,7 @@ jobs:
2023
- name: checkout matrixorigin/matrixone
2124
uses: actions/checkout@v6
2225
with:
26+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
2327
path: ./matrixone
2428
- name: Set up Go
2529
uses: matrixorigin/CI/actions/setup-env@main
@@ -60,6 +64,7 @@ jobs:
6064
- name: Clone test-tool repository
6165
uses: actions/checkout@v6
6266
with:
67+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
6368
repository: matrixorigin/mo-tester
6469
path: ./mo-tester
6570
ref: main
@@ -133,6 +138,7 @@ jobs:
133138
- name: checkout head
134139
uses: actions/checkout@v6
135140
with:
141+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
136142
path: ./head
137143
- name: Set up Go
138144
uses: matrixorigin/CI/actions/setup-env@main
@@ -157,6 +163,7 @@ jobs:
157163
- name: Clone test-tool repository
158164
uses: actions/checkout@v6
159165
with:
166+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
160167
repository: matrixorigin/mo-tester
161168
path: ./mo-tester
162169
ref: main

.github/workflows/merge-trigger-tke.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
TOKEN_ACTION:
2828
description: "TOKEN_ACTION"
2929
required: true
30+
SYNC_APP_KEY:
31+
description: "Token for checkout (optional; falls back to GITHUB_TOKEN)"
32+
required: false
3033

3134
jobs:
3235
docker_image_build:
@@ -43,6 +46,7 @@ jobs:
4346
if: ${{ always() && !cancelled() }}
4447
uses: actions/checkout@v6
4548
with:
49+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
4650
path: ./matrixone
4751
- name: Login to TCR
4852
uses: docker/login-action@v3
@@ -125,6 +129,7 @@ jobs:
125129
if: ${{ always() && !cancelled() }}
126130
uses: actions/checkout@v6
127131
with:
132+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
128133
path: ./matrixone
129134
- name: Clean TKE ENV
130135
run: |
@@ -292,6 +297,7 @@ jobs:
292297
if: ${{ always() && !cancelled() }}
293298
uses: actions/checkout@v6
294299
with:
300+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
295301
path: ./matrixone
296302
- name: Set JAVA PATH
297303
run: |

.github/workflows/release.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
RELEASE_BUCKET:
2828
description: "RELEASE_BUCKET"
2929
required: true
30+
SYNC_APP_KEY:
31+
description: "Token for checkout (optional; falls back to GITHUB_TOKEN)"
32+
required: false
3033

3134
jobs:
3235
linux-amd64-build-job:
@@ -35,6 +38,8 @@ jobs:
3538
steps:
3639
- name: Checkout source
3740
uses: actions/checkout@v6
41+
with:
42+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
3843
- name: Get release
3944
id: get_release
4045
uses: bruceadams/get-release@v1.3.2
@@ -101,6 +106,8 @@ jobs:
101106
steps:
102107
- name: Checkout source
103108
uses: actions/checkout@v6
109+
with:
110+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
104111
- name: Get release
105112
id: get_release
106113
uses: bruceadams/get-release@v1.3.2
@@ -168,6 +175,8 @@ jobs:
168175
exit 1;
169176
- name: Checkout source
170177
uses: actions/checkout@v6
178+
with:
179+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
171180
- name: Get release
172181
id: get_release
173182
uses: bruceadams/get-release@v1.3.2
@@ -198,6 +207,7 @@ jobs:
198207
uses: actions/checkout@v6
199208
with:
200209
fetch-depth: "1"
210+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
201211
repository: matrixorigin/gon
202212
ref: master
203213
path: ./gon
@@ -270,6 +280,8 @@ jobs:
270280
exit 1;
271281
- name: Checkout source
272282
uses: actions/checkout@v6
283+
with:
284+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
273285
- name: Get release
274286
id: get_release
275287
uses: bruceadams/get-release@v1.3.2

.github/workflows/robot.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
DOCU_GROUP_HOOK:
1414
description: "DOCU_GROUP_HOOK"
1515
required: true
16+
SYNC_APP_KEY:
17+
description: "Token for checkout (optional; falls back to GITHUB_TOKEN)"
18+
required: false
1619

1720
# A workflow run is made up of one or more jobs that can run sequentially or in parallel.
1821
jobs:
@@ -38,6 +41,8 @@ jobs:
3841
steps:
3942
- name: CheckOut
4043
uses: actions/checkout@v6
44+
with:
45+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
4146

4247
- name: Check the code to see if the issue number is removed
4348
id: get_check_val
@@ -103,6 +108,7 @@ jobs:
103108
- uses: actions/checkout@v6
104109
with:
105110
fetch-depth: "3"
111+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
106112
path: ./matrixone
107113
- name: Set up Go
108114
uses: matrixorigin/CI/actions/setup-env@main
@@ -125,6 +131,7 @@ jobs:
125131
- name: Clone test-tool repository
126132
uses: actions/checkout@v6
127133
with:
134+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
128135
repository: matrixorigin/mo-tester
129136
path: ./mo-tester
130137
ref: main

0 commit comments

Comments
 (0)