From b85cd9efab1be756c8e5a9cefcddf67af93f27bf Mon Sep 17 00:00:00 2001 From: Gaoyang Date: Thu, 15 Oct 2026 09:53:49 +0800 Subject: [PATCH] Potential fix for code scanning alert no. 2: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3b2842..13b1391 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -128,6 +128,8 @@ jobs: needs: build if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest + permissions: + contents: read steps: - uses: actions/checkout@v7 with: