Skip to content

Bug: Leaderboard workflow fails on protected branch repositories #641

Description

@Harxhit

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

  1. Workflow generates apps/web/public/leaderboard.json
  2. Creates a commit successfully
  3. Attempts to push directly to main
  4. 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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions