-
Notifications
You must be signed in to change notification settings - Fork 2
Add GitHub Action for auto-approving Renovate PRs #1274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1274 +/- ##
=======================================
Coverage ? 99.55%
=======================================
Files ? 6
Lines ? 670
Branches ? 82
=======================================
Hits ? 667
Misses ? 0
Partials ? 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds automation to streamline the dependency update process by automatically approving pull requests from the Renovate bot. The workflow uses pull_request_target trigger with appropriate write permissions scoped to pull requests only, and includes a safety check to ensure it only runs for PRs created by renovate[bot].
Key changes:
- Introduces a new GitHub Actions workflow that auto-approves Renovate PRs using the
hmarr/auto-approve-action@v4action - Uses conditional execution (
if: github.actor == 'renovate[bot]') to restrict approval to Renovate bot PRs only - Grants minimal necessary permissions (
pull-requests: write) for the approval action
|



This pull request adds a new GitHub Actions workflow to automatically approve pull requests created by the Renovate bot. This helps streamline dependency updates and reduces manual intervention for routine PRs.
Automation:
.github/workflows/auto-approve-renovate.ymlto automatically approve PRs opened byrenovate[bot]using thehmarr/auto-approve-action@v4action.