From ca1dbdf8432364d8364000d5052bc2ecb27681cb Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Fri, 5 Jun 2026 15:31:31 +0800 Subject: [PATCH] ci: harden pull request unit test workflow (#5902) --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9ecfd3dc..eb25f713 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,13 @@ on: # 允许手动触发 workflow_dispatch: +permissions: + contents: read + +concurrency: + group: unit-tests-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: pytest: runs-on: ubuntu-latest