diff --git a/.github/workflows/dependabot_pr.yml b/.github/workflows/dependabot_pr.yml index 9d3c1cf1..7c8d5147 100644 --- a/.github/workflows/dependabot_pr.yml +++ b/.github/workflows/dependabot_pr.yml @@ -4,11 +4,18 @@ on: pull_request: types: - opened + - synchronize + - reopened + - labeled + +permissions: + contents: write + pull-requests: write jobs: dependabot: runs-on: ubuntu-latest - if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.issue.labels.*.name, 'dependencies') + if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies') steps: - name: Dependabot metadata