Skip to content

Bump github/codeql-action from 3.28.1 to 3.28.6 #108

Bump github/codeql-action from 3.28.1 to 3.28.6

Bump github/codeql-action from 3.28.1 to 3.28.6 #108

name: Auto-merge Dependabot PR
on:
pull_request:
branches: [master]
permissions:
contents: read
pull-requests: read
jobs:
dependabot-pr:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
# if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: Dependabot metadata
id: dependabot_metadata
uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Authenticate cli
run: echo "${{ steps.generate_token.outputs.token }}" | gh auth login --with-token
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --merge --auto "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}