I started a GitHub action workflow to run Black formatting on any new commit or pull request. This is done by having the action create a new pull request with the format changes.
However, it fails and I believe from reading the error message that the main problem is that the repository is private. There may be away around this:
Enabling workflows for forks of private repositories
If you rely on using forks of your private repositories, you can configure policies that control how users can run workflows on pull_request events. Available to private repositories only, you can configure these policy settings for organizations or repositories.
If a policy is disabled for an organization, it cannot be enabled for a repository.
Run workflows from fork pull requests - Allows users to run workflows from fork pull requests, using a GITHUB_TOKEN with read-only permission, and with no access to secrets.
Send write tokens to workflows from pull requests - Allows pull requests from forks to use a GITHUB_TOKEN with write permission.
Send secrets to workflows from pull requests - Makes all secrets available to the pull request.
Require approval for fork pull request workflows - Workflow runs on pull requests from collaborators without write permission will require approval from someone with write permission before they will run.
I started a GitHub action workflow to run Black formatting on any new commit or pull request. This is done by having the action create a new pull request with the format changes.
However, it fails and I believe from reading the error message that the main problem is that the repository is private. There may be away around this: