chore(workflow): update pull request trigger to pull_request_target and refine permissions for enhanced security
This commit is contained in:
parent
facba28e0a
commit
9768deccd5
1 changed files with 10 additions and 1 deletions
11
.github/workflows/chore-pr-comments.yml
vendored
11
.github/workflows/chore-pr-comments.yml
vendored
|
|
@ -1,6 +1,6 @@
|
|||
name: Add comment based on label
|
||||
on:
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
types:
|
||||
- labeled
|
||||
jobs:
|
||||
|
|
@ -8,6 +8,15 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: read
|
||||
actions: none
|
||||
checks: none
|
||||
deployments: none
|
||||
issues: none
|
||||
packages: none
|
||||
repository-projects: none
|
||||
security-events: none
|
||||
statuses: none
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
|
|
|
|||
Loading…
Reference in a new issue