From 8e41740e0f08912035fbb2e27f9fb9f903f3f849 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sun, 1 Jun 2025 23:22:21 +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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a39377..48d5399 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,8 @@ on: jobs: test: + permissions: + contents: read runs-on: ${{ matrix.os }} strategy: matrix: @@ -50,6 +52,8 @@ jobs: build: needs: test + permissions: + contents: read runs-on: ubuntu-latest steps: - uses: actions/checkout@v4