Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
orb(reactotron): ci: add scripts for trusting PRs from forks to allow…
… CI to run (#1512) ## Please verify the following: - [x] yarn run v1.22.22 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. passes - [x] I have added tests for any new features, if relevant - [x] (or relevant documentation) has been updated with your changes ## Describe your PR ### Summary * adds the script and related docs. to the local repo * CircleCI Changes: * add the trust-check step, to ensure CI doesn't run on untrusted forks * Adds github workflows to: * push PR changes to a trusted branch then clean up automatically after 2h * delete all temp trusted branches with matching branch names ### Notes: * Based on [this article](https://circleci.com/blog/triggering-trusted-ci-jobs-on-untrusted-forks/), this config prevents the build-docs action from running on untrusted forks. * CI will check if a branch is trusted before running CI * Once a branch is trusted, then CI will run * The github workflow to create a temp branch will automatically clean up the branch after a couple hours, and a separate action is provided to manually delete all temp branches in case any get left behind. * the script will need to be cleaned up manually for now -- can maybe automate that with a cron job in github workflows --------- Co-authored-by: Joshua Yoes <[email protected]> (b5fbdb655915d52c383fce026b59379eb43584c7)
- Loading branch information