Skip to content

GitHub Action | Fix SAST & IAC Vul + Threshold (AST-47971) #258

GitHub Action | Fix SAST & IAC Vul + Threshold (AST-47971)

GitHub Action | Fix SAST & IAC Vul + Threshold (AST-47971) #258

name: Dependabot auto-merge
on: pull_request
permissions:
contents: write
jobs:
dependabot-merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 #v1.6.0
with:
github-token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
run: gh pr merge --auto --merge "$PR_URL"
- name: Auto approve dependabot PRs
uses: hmarr/auto-approve-action@a2e6f2a0ccf5c63ef8754de360464edbf47e66ee #v3
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}