Under my personal account on GitHub, I setup 2 repositories (repo1 and repo2) and have a GitHub Action in repo1 designed to trigger a RepositoryDispatchEvent to repo2. This required that I setup a Personal Access Token and then assign that to a secret in repo1, which allowed me to use it inside the action when I made the POST to repo2.
I’m looking to now replicate this behavior but rather than be between 2 personal public repositories, I need to define this setup between 2 repositories owned by an Organization. Thus far I haven’t seen a way to define this behavior through the Organization’s settings.
If I want to replicate this action between between 2 Organization-owned repositories, is there a different approach I should take to allow GitHub Actions from repo1 of Organization A to make a GitHub API request to perform a RepositoryDispatchEvent against repo2 of Organization A?