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