From a2f83567d77d0e2408bdbb2e1ed4ce88ba8ada8e Mon Sep 17 00:00:00 2001 From: Archer <545436317@qq.com> Date: Tue, 22 Jul 2025 12:58:06 +0800 Subject: [PATCH] action (#5277) --- .github/workflows/docs-sync_imgs.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs-sync_imgs.yml b/.github/workflows/docs-sync_imgs.yml index 9de2ae280..1c53d0325 100644 --- a/.github/workflows/docs-sync_imgs.yml +++ b/.github/workflows/docs-sync_imgs.yml @@ -1,16 +1,19 @@ name: Sync images on: - pull_request: - branches: - - main - paths: - - docSite/assets/imgs/** push: branches: - main paths: - docSite/assets/imgs/** workflow_dispatch: + +permissions: + contents: read + packages: write + attestations: write + id-token: write + pull-requests: write + jobs: sync: runs-on: ubuntu-latest @@ -21,7 +24,7 @@ jobs: - name: Run GitHub File Sync uses: BetaHuhn/repo-file-sync-action@v1.21.0 with: - GH_PAT: ${{ secrets.IMG_GH_PAT }} + GH_PAT: ${{ secrets.GITHUB_TOKEN }} CONFIG_PATH: .github/doc-sync-image.yml ORIGINAL_MESSAGE: true SKIP_PR: true