fix: Move PR size labeler to dedicated workflow#1816
Conversation
…ions Move the pr-size-labeler job from codeql.yml to a new dedicated workflow that uses pull_request_target event. This grants write permissions needed to label PRs from forks, fixing the 403 error for non-member contributors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Important Cloud Posse Engineering Team Review RequiredThis pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes. To expedite this process, reach out to us on Slack in the |
Dependency Review✅ No vulnerabilities or license issues found.Scanned Files
|
📝 WalkthroughWalkthroughRemoved the embedded Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1816 +/- ##
==========================================
+ Coverage 71.98% 72.00% +0.01%
==========================================
Files 471 471
Lines 45222 45222
==========================================
+ Hits 32555 32560 +5
+ Misses 10071 10066 -5
Partials 2596 2596
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Changes job ID from "pr-size-labeler" to "label" so the GitHub Actions UI shows "PR Size Labeler / label" instead of redundant naming. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Brings in recent changes from main including: - Deferred YAML function evaluation in merge (#1821) - Website changelog redesign with vertical timeline (#1818) - Version management documentation improvements (#1817) - PR size labeler workflow (#1816) - golangci-lint pinning for Git v2.52+ compatibility (#1815) No conflicts detected - clean merge. Note: Pre-existing linting issues in init/scaffold experimental code remain and will be addressed separately before merging to main. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
what
.github/workflows/pr-size-labeler.ymlworkflow usingpull_request_targeteventpr-size-labelerjob fromcodeql.ymlto dedicated workflowwhy
The PR size labeler was failing with
403 Resource not accessible by integrationfor PRs from forks becausepull_requestevent runs with read-only permissions for non-member contributors. Usingpull_request_targetruns the workflow in the base repository context with write permissions, while remaining safe because we only use the GitHub API to read file metadata.references
Fixes #1814
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.