From 1e07e1f833bc640d4930818f2d59c96c3eeb1c35 Mon Sep 17 00:00:00 2001 From: landaiqing Date: Tue, 16 Dec 2025 14:36:57 +0800 Subject: [PATCH] :bug: 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/build-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 34c9dc6..8685209 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -84,6 +84,8 @@ jobs: fi build: + permissions: + contents: read needs: prepare if: ${{ fromJson(needs.prepare.outputs.matrix).include[0] != null }} strategy: