From 3dcbc918ac15b49911b3a73ae09bc2289b00d2ff Mon Sep 17 00:00:00 2001 From: Ci-Ci Thomson Date: Tue, 23 Jun 2026 09:10:40 -0400 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad10f46..23f7890 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,9 @@ jobs: runs-on: ubuntu-latest needs: build + permissions: + contents: read + steps: - name: Checkout code uses: actions/checkout@v6 @@ -123,6 +126,9 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'pull_request' + permissions: + contents: read + steps: - name: Checkout code uses: actions/checkout@v6