Replace action to append summary with GitHub script#195
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe workflow now appends Docker build summary to an existing GitHub Release's body using the GitHub REST API via ChangesRelease Publishing Automation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Up to standards ✅🟢 Issues
|
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/publish-docker.yml:
- Around line 112-131: The script block currently interpolates `${{
steps.job-summary.outputs.summary }}` directly into the actions/github-script@v7
`script`, creating a potential script-injection risk; instead, pass that output
via the action's `env` (e.g. set SUMMARY: ${{ steps.job-summary.outputs.summary
}}) and inside the `script` read it from `process.env.SUMMARY`, then trim and
use that value when building `body`; update the job step that uses
`actions/github-script@v7` (the step named "Append job summary to release
notes") to add an `env` mapping for the summary and replace the direct
interpolation in the `script` with `process.env.SUMMARY` usage.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 34ca4109-aef2-4820-af55-26457ef84511
📒 Files selected for processing (1)
.github/workflows/publish-docker.yml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Removed redundant summary output to GITHUB_OUTPUT.
Summary by CodeRabbit