From f6c520571cc0e5f845b5983ab72f06aa1bfba020 Mon Sep 17 00:00:00 2001 From: ZouYu <1677290670@qq.com> Date: Fri, 27 Mar 2026 13:10:29 +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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1e5bc2..5c62756 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,9 @@ on: branches: ["master"] pull_request: +permissions: + contents: read + env: GO_VERSION: 1.24