Add permission to coderabbit retry top workflow - #355
Conversation
|
Warning Review limit reached
Next review available in: 8 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: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/coderabbit-retry.yml:
- Around line 16-17: Update the reusable workflow reference in the scheduled
workflow to use a reviewed, immutable commit SHA instead of the mutable `@main`
branch, while preserving the existing inherited secrets and permissions
configuration.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: fe76d72e-c616-4ad5-8261-ff001f878f4c
📒 Files selected for processing (1)
.github/workflows/coderabbit-retry.yml
📜 Review details
⏰ Context from checks skipped due to timeout. (6)
- GitHub Check: Analyze (cpp)
- GitHub Check: pr-build-check
- GitHub Check: Test build on macOS-latest (memcached: false)
- GitHub Check: Test build on macOS-latest (memcached: true)
- GitHub Check: Test build on ubuntu-latest (memcached: true)
- GitHub Check: Test build on ubuntu-latest (memcached: false)
🧰 Additional context used
🪛 zizmor (1.26.1)
.github/workflows/coderabbit-retry.yml
[error] 16-16: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[warning] 15-15: permissions without explanatory comments (undocumented-permissions): needs an explanatory comment
(undocumented-permissions)
[warning] 16-16: secrets unconditionally inherited by called workflow (secrets-inherit): this reusable workflow
(secrets-inherit)
🔇 Additional comments (1)
.github/workflows/coderabbit-retry.yml (1)
14-17: 🎯 Functional CorrectnessVerify the delegated workflow’s permission contract.
This job-level
permissionsblock sets every unspecified scope tonone. Confirm the called workflow does not requirecontents: reador another omitted scope; otherwise retries may fail at runtime.
| uses: chairemobilite/transition/.github/workflows/coderabbit-retry.yml@main | ||
| secrets: inherit |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== workflow files =="
git ls-files .github/workflows | sed -n '1,120p'
echo
echo "== target file =="
if [ -f .github/workflows/coderabbit-retry.yml ]; then
cat -n .github/workflows/coderabbit-retry.yml | sed -n '1,120p'
else
echo "target not found"
fi
echo
echo "== reusable workflow references in workflows =="
rg -n "uses: chairemobilite/transition/.github/workflows/coderabbit-retry.yml|permissions:|pull-requests:\s*write|secrets:\s*inherit|pull_request" .github/workflows || trueRepository: chairemobilite/trRouting
Length of output: 1537
Pin the reusable workflow before granting it secrets and write access.
This scheduled workflow calls a mutable @main reusable workflow with inherited secrets and pull-requests: write. Pin the workflow to a reviewed commit SHA instead.
🧰 Tools
🪛 zizmor (1.26.1)
[error] 16-16: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[warning] 16-16: secrets unconditionally inherited by called workflow (secrets-inherit): this reusable workflow
(secrets-inherit)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/coderabbit-retry.yml around lines 16 - 17, Update the
reusable workflow reference in the scheduled workflow to use a reviewed,
immutable commit SHA instead of the mutable `@main` branch, while preserving the
existing inherited secrets and permissions configuration.
Source: Linters/SAST tools
0748331 to
02e10a1
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
02e10a1 to
e3f34a7
Compare
|
@kaligrafy This should mostly fix the problem with the PR update bot, but still not 100% convinced. Seem better |
e3f34a7 to
c7a0538
Compare
Summary by CodeRabbit