Please don't ask why, but I have 2 GitHub accounts. I'll call these two accounts GH1 and GH2.
The repository: The repository is private, it is in an organization, and the only members of the organization are GH1 and GH2. It is a repository that I don't want linked to my main, GH1, which is why I want there to be no trace of GH1 on that repository, and why I am only pushing to it as GH2.
The repository is being used by me to test workflows, before I deploy them to one of the public repositories of the organization.
When I push to the repo locally (as in, git push
), my commit is attributed to GH2, but when I check the workflow runs, it says that it was pushed by GH1. How can I make sure that the commit is always attributed to GH2?
To clarify: The commit is attributed to GH2, the incorrect attribution to GH1 is in the GitHub Actions workflow runs.
(It has been modified with inspect element to redact sensitive information.)