From d5b05c1578a5045ea05b16b5aedaf562b5ff51f2 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Thu, 29 Jan 2026 12:42:22 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E6=9B=B4=E6=96=B0=20GitHub?= =?UTF-8?q?=20Actions=20=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 auto-tag 工作流中的 ref 参数配置 - 清理工作流中多余的检查跳过关键词步骤 - 为 ci 工作流添加内容读取权限配置 - 优化工作流触发条件和权限设置 --- .github/workflows/auto-tag.yml | 1 - .github/workflows/ci.yml | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 1fb8e9a..9314001 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -26,7 +26,6 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{ github.event.workflow_run.head_sha }} persist-credentials: false - name: Check for skip keyword diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 826bd17..7c8c76e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ on: pull_request: branches: [ main, master ] +permissions: + contents: read + jobs: test: name: Build and Test