mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 03:22:39 +08:00
fix ci: only specify read permissions for version checking (#14275)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user