Skip to content

Commit b2b9313

Browse files
committed
fix: refactor to simplify dependabot automerge logic
1 parent b8025d1 commit b2b9313

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/dependabot-automerge.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,8 @@ jobs:
1818
uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.6.0
1919
with:
2020
github-token: "${{ secrets.GITHUB_TOKEN }}"
21-
- name: Auto-merge Dependabot PRs
22-
# don't auto-merge action updates to appease OpenSSF scorecard
23-
if: ${{ ! contains(steps.metadata.outputs.package-ecosystem, 'github-actions') }}
21+
- name: Enable auto-merge for Dependabot PRs # these still need approval before merge
2422
run: gh pr merge --auto --merge "$PR_URL"
2523
env:
2624
PR_URL: ${{github.event.pull_request.html_url}}
2725
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
28-
- name: Auto-approve Github maintained actions
29-
if: contains(steps.metadata.outputs.dependency-names, 'github/codeql-action')
30-
run: gh pr review --approve "$PR_URL"
31-
env:
32-
PR_URL: ${{github.event.pull_request.html_url}}
33-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)