ci: use pull_request_target for remove label permission (#618)

This commit is contained in:
Prashant Shahi 2022-01-17 21:35:44 +05:30 committed by GitHub
parent 8b47f4af21
commit cac31072a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
name: remove-label
on:
pull_request:
pull_request_target:
types: [synchronize]
jobs:
@ -13,5 +13,4 @@ jobs:
with:
label: ok-to-test
type: remove
token: ${{ secrets.REPO_ACCESS_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}