Repository navigation
fix: refuse inputs that could delete, wipe or leak, and bound search paging #182
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Dependabot auto-merge | ||
|
Check warning on line 1 in .github/workflows/dependabot-auto-merge.yml
|
||
| # Auto-merges Dependabot pull requests for non-major version bumps once | ||
| # branch protection's required checks pass. Major-version bumps are left | ||
| # for manual review. | ||
| # | ||
| # Requires: | ||
| # - Repository setting "Allow auto-merge" enabled. | ||
| # - Branch protection on `main` with the test check marked required. | ||
| on: pull_request_target | ||
| permissions: | ||
| pull-requests: write | ||
| contents: write | ||
| jobs: | ||
| auto-merge: | ||
| name: Auto-merge non-major Dependabot PRs | ||
| if: github.actor == 'dependabot[bot]' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Read Dependabot metadata | ||
| id: meta | ||
| uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0 | ||
| - name: Enable auto-merge | ||
| if: steps.meta.outputs.update-type != 'version-update:semver-major' | ||
| env: | ||
| PR_URL: ${{ github.event.pull_request.html_url }} | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: gh pr merge --auto --squash "$PR_URL" | ||