Skip to content

Commit 3c33295

Browse files
authored
fix an example in authentication-in-a-workflow
actions/labeler now recommends to use the `pull_request_target` event. With the `pull_request` event, `GITHUB_TOKEN` sometimes lacks write permissions (e.g. pull requests from forked repository or from dependabot) and actions/labeler doesn't work well. ref. actions/labeler#90 ref. https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/#improvements-for-public-repository-forks
1 parent ebd13e4 commit 3c33295

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/actions/reference/authentication-in-a-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This example workflow uses the [labeler action](https://github.com/actions/label
4040
```yaml
4141
name: Pull request labeler
4242
on:
43-
- pull_request
43+
- pull_request_target
4444
jobs:
4545
triage:
4646
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)