Code scanning is waiting for results from CodeQL; CodeQL is stuck
- 主要語言
- CodeQL
- 星號
- 10.1k
- 分支
- 2.1k
- 平均合併
- 2 天 15 小時
- 30 天內合併 PR
- 141
描述
Hello there. I seem to have a stuck GitHub Actions workflow.
When I tried to push to GitHub yesterday, I got the following error:
```
remote: error: GH013: Repository rule violations found for refs/heads/main.
remote: Review all repository rules at https://github.com/REDACTED_ORG/REDACTED_REPO/rules?ref=refs%2Fheads%2Fmain
remote:
remote: - Code scanning is waiting for results from CodeQL for the commit REDACTED_COMMIT.
remote:
To https://github.com/REDACTED_ORG/REDACTED_REPO.git
! [remote rejected] main -> main (push declined due to repository rule violations)
error: failed to push some refs to 'https://github.com/REDACTED_ORG/REDACTED_REPO.git'
```
Checking the workflow status, I saw that the "CodeQL Setup" action completed successfully. So I asked to re-run the "CodeQL Setup" action. It's been a day now, and it's still stuck in the "Queued" state. So I tried to unstick the job by canceling it, but was told "Failed to cancel workflow."
How do we proceed with this?
Thank you.
貢獻指南
研究方向
Start by reviewing the reported GitHub Actions workflow, especially the "CodeQL Setup" action and its queued state, alongside the repository rule violation for the named commit. Check the workflow status and cancellation behavior, then document a reproducible cause and a confirmed way to unblock CodeQL results and the rejected push.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- github-actions
- 領域
- ci-cd, security
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 20/100