From 2b01f25debc5704b0dff14be2f4e48830ca106e6 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Sun, 4 Jan 2026 04:36:14 +0800 Subject: [PATCH] fix: move write permission from workflow level to job level --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index efced516..7ca579f3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,5 @@ name: main -permissions: - contents: write - on: push: branches: @@ -85,6 +82,8 @@ jobs: docs: runs-on: ubuntu-24.04 + permissions: + contents: write steps: - uses: actions/checkout@v6.0.1 - uses: actions/setup-python@v6.1.0