Skip to content

ci(deps): bump actions/checkout from 7.0.0 to 7.0.1 #3454

ci(deps): bump actions/checkout from 7.0.0 to 7.0.1

ci(deps): bump actions/checkout from 7.0.0 to 7.0.1 #3454

name: Auto-merge PRs from trusted bots
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || github.actor == 'github-actions' }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: app-token
with:
app-id: 2754721
owner: ${{ github.repository_owner }}
private-key: ${{ secrets.ACTIONS_RECURSIVE_PRIVATE_KEY }}
- name: Dependabot metadata
id: metadata
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
uses: step-security/dependabot-fetch-metadata@bf8fb6e0be0a711c669dc236de6e7f7374ba626e # v3.1.0
with:
github-token: ${{ steps.app-token.outputs.token }}
- name: Enable auto-merge
run: gh pr merge --auto --merge "$PR_URL"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
PR_URL: ${{github.event.pull_request.html_url}}