Auto-Merge Dependabot PRs
GitHub App
Auto-Merge Dependabot PRs
GitHub App
This GitHub App enables auto-merge on PRs that dependabot opens so that they are merged automatically if CI passes.
Installation
First:
- Ensure Require status checks to pass in Branch protection rules is enforced for your CI.
- Ensure Allow auto-merge is enabled in your General repo settings.
Then:
- Click the Configure button to the right.
- Select the repository for which you want to auto-merge dependabot PRs.
- Click the Install button.
- Done!
Now when dependabot1 opens a PR this GitHub App will automatically enable auto-merge for that PR.
Security
Using this GitHub App is more secure than using a pull_request_target
-triggered GitHub Actions workflow with a Personal Access Token (PAT) because:
- No
pull_request_target
-triggered workflow is needed so the risk of pwn requests is reduced. - The credentials never enter any GitHub Actions workflow so the risk for credential leak is very low.
- Even if the credentials leak the permissions are minimal ("Contents" to auto-merge PRs and "Pull requests" to comment on auto-merged PRs).
Terms of Service
Consider sponsoring to cover operational costs.
I reserve the right to cease operations at any point in time. But if I do, you can deploy the app yourself since this bot is open source.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Acknowledgements
The logo is this image under this license.
Footnotes
-
"user": { "login": "dependabot[bot]", "id": 49699333 }
↩
Developer
Auto-Merge Dependabot PRs is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.
Report abuse