From 73e1154517a0be53de5a988c5a3ac9626c00a5d8 Mon Sep 17 00:00:00 2001 From: PP Date: Thu, 16 Feb 2023 14:42:41 +0800 Subject: [PATCH] fix ci: only specify read permissions for version checking (#14275) --- .github/workflows/web-check_version.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/web-check_version.yml b/.github/workflows/web-check_version.yml index 4aa6acd6f7..21e85d82fc 100644 --- a/.github/workflows/web-check_version.yml +++ b/.github/workflows/web-check_version.yml @@ -3,8 +3,6 @@ name: Check version #on: push on: [create, pull_request] -permissions: read-all - # github.head_ref is only defined on pull_request events concurrency: group: ${{ github.workflow }}-${{ github.actor }}-${{ github.head_ref || github.run_id }} @@ -13,6 +11,9 @@ concurrency: jobs: Check_package_version: runs-on: ubuntu-latest + + permissions: read-all + if: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) steps: