Description
The contributor leaderboard workflow currently generates and commits leaderboard.json successfully, but fails when attempting to push changes directly to the protected main branch.
Repository branch protection rules require all changes to go through a pull request, causing the workflow to fail with:
remote: GH013: Repository rule violations found
remote: Changes must be made through a pull request.
Current Behavior
- Workflow generates
apps/web/public/leaderboard.json
- Creates a commit successfully
- Attempts to push directly to
main
- Push is rejected by branch protection rules
Expected Behavior
The workflow should comply with repository rules by:
- Creating a pull request automatically for leaderboard updates, or
- Using an alternative update mechanism that respects branch protection policies
Impact
The leaderboard data is generated successfully but never reaches the repository, causing the automation to fail on every scheduled run.
Suggested Solution
Update the workflow to create a dedicated branch and open a pull request for leaderboard updates instead of pushing directly to main.
Additional Context
The path-related issue has already been resolved. The remaining failure is caused by repository rules preventing direct pushes to protected branches.
Description
The contributor leaderboard workflow currently generates and commits
leaderboard.jsonsuccessfully, but fails when attempting to push changes directly to the protectedmainbranch.Repository branch protection rules require all changes to go through a pull request, causing the workflow to fail with:
Current Behavior
apps/web/public/leaderboard.jsonmainExpected Behavior
The workflow should comply with repository rules by:
Impact
The leaderboard data is generated successfully but never reaches the repository, causing the automation to fail on every scheduled run.
Suggested Solution
Update the workflow to create a dedicated branch and open a pull request for leaderboard updates instead of pushing directly to
main.Additional Context
The path-related issue has already been resolved. The remaining failure is caused by repository rules preventing direct pushes to protected branches.