From c749c37cd724511b23bbddda4b009eb007ef6eaf Mon Sep 17 00:00:00 2001 From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com> Date: Thu, 22 Oct 2026 18:14:06 +0000 Subject: [PATCH] chore: limit the docs workflow's token permissions The default GITHUB_TOKEN in this repo has write access to everything, so the docs build job ran with full write access. It only needs to read the repository; the deploy job keeps its pages and id-token permissions. --- .github/workflows/deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index da45f56..61bc49f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,9 +5,13 @@ on: pull_request: branches: [main] +permissions: {} + jobs: build: runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Checkout Repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1