Skip to content

Commit 53a42ed

Browse files
committed
has to be a dependabot pr but anyone can trigger the workflow kicking off by taking off and then reapplying the dependencies label
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
1 parent 329d8cc commit 53a42ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/auto-approve-and-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
jobs:
1010
approve:
1111
name: Auto-approve dependabot PRs
12-
if: github.actor == 'dependabot[bot]'
12+
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')
1313
runs-on: ubuntu-24.04
1414
steps:
1515
- uses: hmarr/auto-approve-action@v4

0 commit comments

Comments
 (0)