From db429d9ffef536ef5dc2c9b58d8d5de5f55e8059 Mon Sep 17 00:00:00 2001 From: limbo Date: Tue, 10 Jun 2025 13:07:24 +0800 Subject: [PATCH] Fix ci permissions issue --- .github/workflows/build-scripts-updated.yml | 3 ++- .github/workflows/dockerize-runtime-exporter.yml | 3 ++- .github/workflows/dockerize-server.yml | 3 ++- .github/workflows/dockerize-web.yml | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-scripts-updated.yml b/.github/workflows/build-scripts-updated.yml index 0fc7db58..5d871fca 100644 --- a/.github/workflows/build-scripts-updated.yml +++ b/.github/workflows/build-scripts-updated.yml @@ -12,7 +12,7 @@ on: - "!**/*.md" permissions: - contents: read + contents: write actions: write concurrency: @@ -28,3 +28,4 @@ jobs: with: event-type: build-scripts-updated client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "version": "latest"}' + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/dockerize-runtime-exporter.yml b/.github/workflows/dockerize-runtime-exporter.yml index 5802a1c4..a11bfc62 100644 --- a/.github/workflows/dockerize-runtime-exporter.yml +++ b/.github/workflows/dockerize-runtime-exporter.yml @@ -20,7 +20,7 @@ on: permissions: pull-requests: write packages: write - contents: read + contents: write actions: write concurrency: @@ -120,3 +120,4 @@ jobs: with: event-type: docker_build_success client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "version": "latest"}' + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/dockerize-server.yml b/.github/workflows/dockerize-server.yml index 0c497aa9..4e522e1f 100644 --- a/.github/workflows/dockerize-server.yml +++ b/.github/workflows/dockerize-server.yml @@ -21,7 +21,7 @@ on: permissions: pull-requests: write packages: write - contents: read + contents: write actions: write concurrency: @@ -121,3 +121,4 @@ jobs: with: event-type: docker_build_success client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "version": "latest"}' + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/dockerize-web.yml b/.github/workflows/dockerize-web.yml index c87ad06b..d497d950 100644 --- a/.github/workflows/dockerize-web.yml +++ b/.github/workflows/dockerize-web.yml @@ -22,7 +22,7 @@ on: permissions: pull-requests: write packages: write - contents: read + contents: write actions: write concurrency: @@ -150,3 +150,4 @@ jobs: with: event-type: docker_build_success client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "version": "latest"}' + token: ${{ secrets.GITHUB_TOKEN }}