Skip to content

fix an example in authentication-in-a-workflow - #4517

Merged
ethanpalm merged 2 commits into
github:mainfrom
shogo82148:patch-1
Mar 17, 2021
Merged

fix an example in authentication-in-a-workflow#4517
ethanpalm merged 2 commits into
github:mainfrom
shogo82148:patch-1

Conversation

@shogo82148

Copy link
Copy Markdown
Contributor

Why:

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

What's being changed:

update the example workflow of actions/labeler.

Check off the following:

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
@janiceilene

Copy link
Copy Markdown
Contributor

@shogo82148 Thanks so much for opening a PR! I'll get this triaged for review ⚡

1 similar comment
@janiceilene

Copy link
Copy Markdown
Contributor

@shogo82148 Thanks so much for opening a PR! I'll get this triaged for review ⚡

@janiceilene janiceilene added actions This issue or pull request should be reviewed by the docs actions team waiting for review Issue/PR is waiting for a writer's review labels Mar 16, 2021

@ethanpalm ethanpalm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this PR, @shogo82148! The change looks great and I'll get it merged as soon as all checks are passing ✨

Thanks for your contribution and helping to improve the GitHub docs!

@ethanpalm
ethanpalm merged commit aee29ee into github:main Mar 17, 2021
@github-actions

Copy link
Copy Markdown
Contributor

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues

@shogo82148
shogo82148 deleted the patch-1 branch December 4, 2021 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

actions This issue or pull request should be reviewed by the docs actions team waiting for review Issue/PR is waiting for a writer's review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants