From bff9144e9a906a669300b6be2846195b2096d9fa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 12:43:18 +0000 Subject: [PATCH] fix: add explicit permissions blocks to workflows (CodeQL) Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- .github/workflows/sandbox-deploy.yml | 3 +++ .github/workflows/sync-deploy-to-notion.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/sandbox-deploy.yml b/.github/workflows/sandbox-deploy.yml index 0ca8d2ad..4658ef9a 100644 --- a/.github/workflows/sandbox-deploy.yml +++ b/.github/workflows/sandbox-deploy.yml @@ -8,6 +8,9 @@ on: branches: - 'dev/DEV-*/**' +permissions: + contents: write + jobs: # ===== Job 1: 解析 + 校验 ===== parse-and-validate: diff --git a/.github/workflows/sync-deploy-to-notion.yml b/.github/workflows/sync-deploy-to-notion.yml index 67063944..1d61cfcb 100644 --- a/.github/workflows/sync-deploy-to-notion.yml +++ b/.github/workflows/sync-deploy-to-notion.yml @@ -8,6 +8,9 @@ on: - cron: '0 4,14 * * *' workflow_dispatch: +permissions: + contents: read + jobs: sync: runs-on: ubuntu-latest