Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] Use pull_request_target event to trigger "add codeowners" workflow #16228

Merged

Conversation

evan-bradley
Copy link
Contributor

Description:

This updates the workflow to use the pull_request_target event instead of the pull_request event. The former event generates an access token with write permissions on the target repo, as where the latter only creates one with read permissions.

I had only tested this on pull requests within my fork, which is why pull_request worked in that case. The "auto assign" workflow uses pull_request_target, so this should fix the issue.

@mx-psi mx-psi merged commit 603e05f into open-telemetry:main Nov 10, 2022
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
…orkflow (open-telemetry#16228)

Use `pull_request_target` event to trigger "add codeowners to PR" workflow

Co-authored-by: Evan Bradley <evan-bradley@users.noreply.github.com>
@plantfansam plantfansam mentioned this pull request Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants