chore: [release-2.9.x] ci: Update workflows to use actions that don't need organization secrets #13147
Workflow file for this run
This file contains 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
# Auto-merge as documented in official Github docs | |
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions | |
name: Auto-review Dependabot PRs | |
on: pull_request | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
dependabot-reviewer: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Approve the dependabot PR | |
run: | | |
gh pr review $PR_URL \ | |
--approve -b "Auto approve dependencies bump PR" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |