ci(codeql): run CodeQL on every trigger (drop private-repo gate) - #82
ci(codeql): run CodeQL on every trigger (drop private-repo gate)#82nish3451 wants to merge 1 commit into
Conversation
The analyze job's if-condition required the repo to be public or the ENABLE_PRIVATE_CODEQL repo variable to equal '1'. tinystudio-in is private and the variable is unset, so CodeQL security analysis never ran. Remove the gate so the job runs on every trigger (PR, push to main/codex/**, weekly schedule, workflow_dispatch).
There was a problem hiding this comment.
nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
Warning Review limit reached
Next review available in: 29 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Comment |
|
Superseded by #89 (same gate drop + the missing |
|
Closed as superseded by #89 — the fix now includes the permission change that makes the analyze step finish successfully. |
Problem
The CodeQL
analyzejob has skipped on every run since the repo baseline:tinystudio-in is a private repo, so
repository.private == falseis false, and theENABLE_PRIVATE_CODEQLrepo variable is unset (verified: the variable is referenced nowhere else in the repo, and no workflow run ever executed the job). Both gate conditions are false on every run — CodeQL security analysis never runs.Fix
Remove the job-level
ifgate entirely, with a comment explaining why (so the gate is not accidentally re-added). The job now runs on every trigger: pull_request, push to main/codex/**, the weekly Monday 03:23 schedule, and workflow_dispatch.Verification
GET /repos/nish3451/tinystudio-inreturns 404 (private).ENABLE_PRIVATE_CODEQLappears only in codeql.yml (git log -S across all branches: introduced with baseline commit a8be36c, never set as a repo variable).