Skip to content

[Bug] Spurious remote: error: GH013: Repository rule violations found for refs/heads/trunk. remote: - Code scanning is waiting for results from CodeQL for the commit #19459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SwuduSusuwu opened this issue May 3, 2025 · 1 comment

Comments

@SwuduSusuwu
Copy link

SwuduSusuwu commented May 3, 2025

Description of the false positive

remote: error: GH013: Repository rule violations found for refs/heads/trunk.
remote: Review all repository rules at https://github.com/SwuduSusuwu/SusuLib/rules?ref=refs%2Fheads%2Ftrunk
remote:
remote: - Code scanning is waiting for results from CodeQL for the commit 493026f.
remote:
To ssh://github.com/SwuduSusuwu/SusuLib.git
 ! [remote rejected]   a32d469e~4 -> trunk (push declined due to repository rule violations)
error: failed to push some refs to 'ssh://github.com/SwuduSusuwu/SusuLib.git'

Code samples or links to source code
This is not related to particular source code. It happens at random when merging from continuous integration branches into trunk.

Have set the rules to require that all code reviews to allow to merge.
For huge pull requests, this can take over an hour (to push all of the commits to the branch in order, 1 by 1, waiting for the scans / reviews to finish after push).

  • Numerous huge pull requests (which took months to produce, and over an hour just to push the individual commits in order and wait for the results after each push) were ruined because of this (once all of the tests pass and you start to push those individual commits to trunk, spurious errors result in all commits pushed to trunk being removed from the pull request, with no possible commands to insert those back into the pull request if branch protection of trunk blocks force pushes).

URL to the alert on GitHub code scanning (optional)

Irrelevant, since had to redo

@SwuduSusuwu
Copy link
Author

SwuduSusuwu commented May 3, 2025

@SwuduSusuwu SwuduSusuwu changed the title codeql and codacy give spurious remote: error: GH013: Repository rule violations found for refs/heads/trunk. remote: - Code scanning is waiting for results from CodeQL for the commit [Bug] Spurious remote: error: GH013: Repository rule violations found for refs/heads/trunk. remote: - Code scanning is waiting for results from CodeQL for the commit May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant