@@ -4,6 +4,9 @@ name: MatrixOne CI
44on :
55 workflow_call :
66 secrets :
7+ TOKEN_ACTION :
8+ description : " Token for checkout (e.g. pull from fork/private)"
9+ required : false
710 S3ENDPOINT :
811 description : " S3ENDPOINT For Test"
912 required : true
7679
7780 - uses : actions/checkout@v6
7881 with :
82+ token : ${{ secrets.TOKEN_ACTION }}
7983 fetch-depth : " 3"
8084 repository : ${{ github.event.pull_request.head.repo.full_name }}
8185 ref : ${{ github.event.pull_request.head.ref }}
@@ -143,20 +147,6 @@ jobs:
143147 echo "steps.ut.conclusion: ${{ steps.ut.conclusion }}"
144148 echo "FAIL_UT_CASES=${fail_ut_cases}"
145149 echo "FAIL_UT_CASES=${fail_ut_cases}" >> $GITHUB_OUTPUT
146- - name : Insert Failed UT Cases to MOC
147- if : ${{ failure() }}
148- uses : matrixorigin/CI/actions/fail-ut-case@main
149- with :
150- action_time : ${{ steps.time.outputs.ACTION_TIME }}
151- ut_cases : ${{ steps.failed.outputs.FAIL_UT_CASES }}
152- pr_link : ${{ github.event.pull_request.html_url }}
153- action_link : ${{ steps.time.outputs.ACTION_LINK }}
154- job_time : ${{ steps.time.outputs.START_TIME }}
155- mo_host : ${{ secrets.EE_DB_ADDR }}
156- mo_port : ${{ secrets.EE_DB_PORT }}
157- mo_user : ${{ secrets.EE_DB_USER }}
158- mo_password : ${{ secrets.EE_DB_PASSWORD }}
159- mo_database : ${{ secrets.EE_DB_DB }}
160150 - name : Print the Top 10 Time-Consuming Tests
161151 if : ${{ always() }}
162152 continue-on-error : true
@@ -173,6 +163,7 @@ jobs:
173163 steps :
174164 - uses : actions/checkout@v6
175165 with :
166+ token : ${{ secrets.TOKEN_ACTION }}
176167 fetch-depth : " 3"
177168 repository : ${{ github.event.pull_request.head.repo.full_name }}
178169 ref : ${{ github.event.pull_request.head.ref }}
@@ -211,6 +202,7 @@ jobs:
211202 steps :
212203 - uses : actions/checkout@v6
213204 with :
205+ token : ${{ secrets.TOKEN_ACTION }}
214206 fetch-depth : " 3"
215207 repository : ${{ github.event.pull_request.head.repo.full_name }}
216208 ref : ${{ github.event.pull_request.head.ref }}
0 commit comments