From dca766ba01d519b1a068e533d40b1d88a71b66fe Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 12:37:21 +0000 Subject: [PATCH 1/2] Initial plan From b460f7418e27531edbf9e663439b2cdfaf8a7dfb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 12:38:29 +0000 Subject: [PATCH 2/2] Apply least-privilege principle to workflow permissions Co-authored-by: Sakura-Ex <49809606+Sakura-Ex@users.noreply.github.com> --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c526e3b..be69946 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ concurrency: cancel-in-progress: true permissions: - contents: write + contents: read jobs: # 1. 测试任务 @@ -100,6 +100,8 @@ jobs: needs: build if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Download Artifact uses: actions/download-artifact@v4