From 5b5a4aa009d8a4b890c8c448120d8aac2673b611 Mon Sep 17 00:00:00 2001 From: datadunia Date: Wed, 10 Jun 2026 04:26:22 +0700 Subject: [PATCH] ci: add BUILD_TOKEN for submodule checkout authentication --- .gitea/workflows/build_dashboard.yaml | 2 ++ .gitea/workflows/build_device_agent.yaml | 2 ++ .gitea/workflows/build_server_core.yaml | 2 ++ .gitea/workflows/ci.yml | 6 ++++++ .gitea/workflows/docs_call.yaml | 2 ++ .gitea/workflows/release_call.yaml | 2 ++ 6 files changed, 16 insertions(+) diff --git a/.gitea/workflows/build_dashboard.yaml b/.gitea/workflows/build_dashboard.yaml index 5dd4c07..f7dbf7c 100644 --- a/.gitea/workflows/build_dashboard.yaml +++ b/.gitea/workflows/build_dashboard.yaml @@ -14,6 +14,8 @@ jobs: with: submodules: true fetch-depth: 0 + token: ${{ secrets.BUILD_TOKEN }} + persist-credentials: true - uses: actions/setup-node@v4 with: diff --git a/.gitea/workflows/build_device_agent.yaml b/.gitea/workflows/build_device_agent.yaml index cea67fd..2de62e6 100644 --- a/.gitea/workflows/build_device_agent.yaml +++ b/.gitea/workflows/build_device_agent.yaml @@ -21,6 +21,8 @@ jobs: with: submodules: true fetch-depth: 0 + token: ${{ secrets.BUILD_TOKEN }} + persist-credentials: true - uses: actions/setup-go@v5 with: diff --git a/.gitea/workflows/build_server_core.yaml b/.gitea/workflows/build_server_core.yaml index 51f39c4..3ed75a4 100644 --- a/.gitea/workflows/build_server_core.yaml +++ b/.gitea/workflows/build_server_core.yaml @@ -14,6 +14,8 @@ jobs: with: submodules: true fetch-depth: 0 + token: ${{ secrets.BUILD_TOKEN }} + persist-credentials: true - uses: actions/setup-go@v5 with: diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 60cec54..9f670bb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -19,6 +19,8 @@ jobs: with: submodules: true fetch-depth: 0 + token: ${{ secrets.BUILD_TOKEN }} + persist-credentials: true - uses: actions/setup-go@v5 with: go-version: '1.26' @@ -35,6 +37,8 @@ jobs: with: submodules: true fetch-depth: 0 + token: ${{ secrets.BUILD_TOKEN }} + persist-credentials: true - uses: actions/setup-go@v5 with: go-version: '1.26' @@ -51,6 +55,8 @@ jobs: with: submodules: true fetch-depth: 0 + token: ${{ secrets.BUILD_TOKEN }} + persist-credentials: true - uses: actions/setup-node@v4 with: node-version: '24' diff --git a/.gitea/workflows/docs_call.yaml b/.gitea/workflows/docs_call.yaml index 42acc28..b39444c 100644 --- a/.gitea/workflows/docs_call.yaml +++ b/.gitea/workflows/docs_call.yaml @@ -14,6 +14,8 @@ jobs: with: submodules: true fetch-depth: 0 + token: ${{ secrets.BUILD_TOKEN }} + persist-credentials: true - uses: actions/setup-node@v4 with: diff --git a/.gitea/workflows/release_call.yaml b/.gitea/workflows/release_call.yaml index 9e986bc..4ab5feb 100644 --- a/.gitea/workflows/release_call.yaml +++ b/.gitea/workflows/release_call.yaml @@ -19,6 +19,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.BUILD_TOKEN }} + persist-credentials: true - name: Download all artifacts uses: actions/download-artifact@v4