Commit 6c12f1ab by DigHuang Committed by GitHub

fix(ci): allow trusted fork checkout in pro workflows (#7342)

parent 7f9cb7a2
...@@ -34,6 +34,7 @@ jobs: ...@@ -34,6 +34,7 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }} repository: ${{ github.event.pull_request.head.repo.full_name }}
allow-unsafe-pr-checkout: true
fetch-depth: 1 fetch-depth: 1
- name: Update submodules - name: Update submodules
......
...@@ -44,6 +44,7 @@ jobs: ...@@ -44,6 +44,7 @@ jobs:
repository: ${{ github.event_name == 'pull_request_target' && repository: ${{ github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name || github.repository github.event.pull_request.head.repo.full_name || github.repository
}} }}
allow-unsafe-pr-checkout: true
- name: Update submodules - name: Update submodules
env: env:
PRO_SUBMODULE_TOKEN: ${{ secrets.PRO_SUBMODULE_TOKEN }} PRO_SUBMODULE_TOKEN: ${{ secrets.PRO_SUBMODULE_TOKEN }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment