Skip to content

Commit d4b3254

Browse files
authored
Replace TOKEN_ACTION with SYNC_APP_KEY in workflows (#350)
1 parent 3eba17e commit d4b3254

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/utils.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
while true; do
6262
users=$(curl -L \
6363
-H "Accept: application/vnd.github+json" \
64-
-H "Authorization: Bearer ${{ secrets.TOKEN_ACTION }}" \
64+
-H "Authorization: Bearer ${{ secrets.SYNC_APP_KEY || github.token }}" \
6565
-H "X-GitHub-Api-Version: 2022-11-28" \
6666
"https://api.github.com/orgs/matrixorigin/members?page=$PAGE&per_page=$PER_PAGE");
6767
if [ $(echo $users | jq ".[].login" | grep -c "${{ github.event.pull_request.user.login }}" ) -eq 1 ]; then
@@ -82,7 +82,7 @@ jobs:
8282
run: |
8383
labels=$(curl -L \
8484
-H "Accept: application/vnd.github+json" \
85-
-H "Authorization: Bearer ${{ secrets.TOKEN_ACTION }}" \
85+
-H "Authorization: Bearer ${{ secrets.SYNC_APP_KEY || github.token }}" \
8686
-H "X-GitHub-Api-Version: 2022-11-28" \
8787
'${{ github.event.pull_request.url}}' | jq ".labels");
8888
if [ $(echo $labels | jq ".[].name" | grep -c "safe-to-test" ) -ge 1 ]; then
@@ -410,7 +410,7 @@ jobs:
410410
- name: size-label
411411
uses: "matrixorigin/CI/actions/label-size-action@main"
412412
with:
413-
size_token: ${{ secrets.TOKEN_ACTION }}
413+
size_token: ${{ secrets.SYNC_APP_KEY || github.token }}
414414
ignore: ".md,.pb.go"
415415
sizes: >
416416
{
@@ -441,39 +441,39 @@ jobs:
441441
uses: actions/checkout@v6
442442
with:
443443
repository: matrixorigin/mo-load-data
444-
token: ${{secrets.TOKEN_ACTION}}
444+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
445445
path: ./mo-load-data
446446
ref: main
447447
- name: Clone mo-load Repo
448448
if: ${{ !cancelled() && !failure() }}
449449
uses: actions/checkout@v6
450450
with:
451451
repository: matrixorigin/mo-load
452-
token: ${{secrets.TOKEN_ACTION}}
452+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
453453
path: ./mo-load
454454
ref: "1.0"
455455
- name: Clone mo-tpcc Repo
456456
if: ${{ !cancelled() && !failure() }}
457457
uses: actions/checkout@v6
458458
with:
459459
repository: matrixorigin/mo-tpcc
460-
token: ${{secrets.TOKEN_ACTION}}
460+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
461461
path: ./mo-tpcc
462462
ref: main
463463
- name: Clone mo-ssb Repo
464464
if: ${{ !cancelled() && !failure() }}
465465
uses: actions/checkout@v6
466466
with:
467467
repository: matrixorigin/mo-ssb
468-
token: ${{secrets.TOKEN_ACTION}}
468+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
469469
path: ./mo-ssb
470470
ref: main
471471
- name: Clone mo-tpch Repo
472472
if: ${{ !cancelled() && !failure() }}
473473
uses: actions/checkout@v6
474474
with:
475475
repository: matrixorigin/mo-tpch
476-
token: ${{secrets.TOKEN_ACTION}}
476+
token: ${{ secrets.SYNC_APP_KEY || github.token }}
477477
path: ./mo-tpch
478478
ref: main
479479

0 commit comments

Comments
 (0)