fix ci: only specify read permissions for version checking (#14275)

This commit is contained in:
PP
2023-02-16 14:42:41 +08:00
committed by GitHub
parent 1523dd328b
commit 73e1154517
+3 -2
View File
@@ -3,8 +3,6 @@ name: <Web> 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: