Skip to content

Trying pull_request_target trigger event for add-content-to-project workflow#39

Merged
bflad merged 1 commit intomainfrom
detro-patch-1
Mar 9, 2022
Merged

Trying pull_request_target trigger event for add-content-to-project workflow#39
bflad merged 1 commit intomainfrom
detro-patch-1

Conversation

@detro
Copy link
Copy Markdown
Contributor

@detro detro commented Mar 9, 2022

Switching the event used by add-content-to-project GH Action, in case of Pull Requests.

It turns out, pull_request_target is the only trigger that can be used that ALSO has access to secrets of the project.

But the key implication is to use it EXCLUSIVELY for actions that do not use anything from the triggering PR (like in this case), otherwise there is a very high risk of leaking secrets.

@detro detro requested a review from a team as a code owner March 9, 2022 17:13
@bflad bflad merged commit fdd273d into main Mar 9, 2022
@bflad bflad deleted the detro-patch-1 branch March 9, 2022 17:47
This was referenced Mar 10, 2022
@github-actions
Copy link
Copy Markdown

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants