Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra: Use GitHub gate for webui-trigger
Currently, the webui trigger is gated for external contributors by failing the trigger workflow which demands developer to run a command on their machine to start tests on Anaconda PR. This PR change allows external contributors execution all the time. Which raises an additional issue. Anaconda project have workflows configured that they are required to be enabled each time manually by pressing button on the PR page. This works fine but only for `pull_request` trigger and webui-trigger workflow is using `pull_request_target` which is not covered by this gating. The `pull_request_target` trigger is used because we need a Github token of the workflow from the target repository so that webui tests are able to set the status on PR. To resolve the issue above, let's use our own token instead of the workflow generated one and switch the trigger to `pull_request` which as side effect will also make the whole workflow more secure.
- Loading branch information