1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/.github/workflows
Thomas Heartman 312b5d42e8
meta: add external PRs to project board
The `pull_request` hook runs in the context of the proposed changes. That means that for forks, this action won't have access to the required secrets for it to complete. As such, PRs from outside contributors won't work correctly.

The `pull_request_target` hook, however, runs in the context of the target branch, and thus has all the permissions it needs. The [github docs for this hook](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target) also indicate that this is the way to go:

> This event allows your workflow to do things like label or comment on pull requests from forks. Avoid using this event if you need to build or run code from the pull request.

## Interesting note for PRs

It seems that when this change is proposed as a PR, the expected action (_add new item to project board_) does not run. However, this does not affect other new PRs. Also, after merging it works as expected, for both external and internal contributors.
2022-05-20 15:21:54 +02:00
..
add-to-project.yml meta: add external PRs to project board 2022-05-20 15:21:54 +02:00
build_coverage.yaml fix: add gh creds to coverage action 2022-05-20 12:25:17 +02:00
build_doc_prs.yaml
build_prs_jest_report.yaml fix: do not ignore coverage/report.json 2022-05-20 11:44:53 +02:00
build_prs.yaml
build.yaml fix: coverage build for main should be a seperate workflow 2022-05-20 12:09:16 +02:00
flag-no-response.yaml
generate-docs.yaml
release_changelog.yml
release.yaml fix: release script syntax 2022-04-20 23:45:02 +02:00
update_contributors.yaml fix: trim out test trigger for svg gen 2022-04-22 10:40:23 +02:00