1
0
Fork 0
mirror of https://github.com/imjasonh/govulncheck-action synced 2026-07-08 08:45:48 +00:00
govulncheck-action/.github/workflows/dependabot-auto-merge.yml
Jason Hall 84fba33b7b
Add Dependabot auto-merge workflow
This workflow automatically enables auto-merge for pull requests created by Dependabot, using squash merge strategy to maintain a clean commit history.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 15:34:22 -04:00

18 lines
No EOL
424 B
YAML

name: Dependabot auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
steps:
- name: Enable auto-merge for Dependabot PRs
if: github.actor == 'dependabot[bot]'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}