From 3a6f6de48c4f8c84955835643ce17fcb2e5d5377 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 3 Jun 2026 10:56:05 +0800 Subject: [PATCH] chore: update github actions --- .github/workflows/push_image.yml | 6 +++++- .github/workflows/push_image_next.yml | 6 +++++- .github/workflows/release.yml | 15 ++++++++++----- .github/workflows/release_sync_gitee.yml | 3 ++- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index c50378a37..e1f106eb1 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -21,7 +21,8 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - fetch-depth: 0 + fetch-depth: 1 + persist-credentials: false - name: Set up Node.js uses: actions/setup-node@v6 @@ -46,6 +47,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v6 + with: + fetch-depth: 1 + persist-credentials: false - name: Free disk space uses: BRAINSia/free-disk-space@v2 diff --git a/.github/workflows/push_image_next.yml b/.github/workflows/push_image_next.yml index 14f0d587e..1057b942b 100644 --- a/.github/workflows/push_image_next.yml +++ b/.github/workflows/push_image_next.yml @@ -20,7 +20,8 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - fetch-depth: 0 + fetch-depth: 1 + persist-credentials: false - name: Set up Node.js uses: actions/setup-node@v6 @@ -45,6 +46,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v6 + with: + fetch-depth: 1 + persist-credentials: false - name: Free disk space uses: BRAINSia/free-disk-space@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1902e345..1bcc8df2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,8 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - fetch-depth: 0 + fetch-depth: 1 + persist-credentials: false - name: Set up Node.js uses: actions/setup-node@v6 @@ -38,7 +39,8 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - fetch-depth: 0 + fetch-depth: 1 + persist-credentials: false - name: Set up Go uses: actions/setup-go@v6 @@ -82,7 +84,8 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - fetch-depth: 0 + fetch-depth: 1 + persist-credentials: false - name: Set up Go uses: actions/setup-go@v6 @@ -120,7 +123,8 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - fetch-depth: 0 + fetch-depth: 1 + persist-credentials: false - name: Set up Go uses: actions/setup-go@v6 @@ -161,7 +165,8 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - fetch-depth: 0 + fetch-depth: 1 + persist-credentials: false - name: Download all binaries uses: actions/download-artifact@v6 diff --git a/.github/workflows/release_sync_gitee.yml b/.github/workflows/release_sync_gitee.yml index 33c32abdd..d1963fe1d 100644 --- a/.github/workflows/release_sync_gitee.yml +++ b/.github/workflows/release_sync_gitee.yml @@ -12,7 +12,8 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - fetch-depth: 0 + fetch-depth: 1 + persist-credentials: false - name: Set up Python3 uses: actions/setup-python@v6