Skip to content

Commit 50b1548

Browse files
authored
Merge pull request #226 from secure-software-engineering/ci/handledependabot
automate dependabot PRs
2 parents 63f8f44 + 5fe6d4e commit 50b1548

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.github/workflows/approve_dependabotifications.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/dependabot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Handle Dependabot PRs
2+
3+
on:
4+
pull_request:
5+
types: [ opened, reopened, synchronize ]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
ApproveAndMerge:
13+
name: Auto approve Dependabot PRs
14+
runs-on: ubuntu-latest
15+
# Only run for PRs created by Dependabot - extended verification is done in the reusable workflow
16+
if: github.actor == 'dependabot[bot]'
17+
# These permissions are needed to approve pull requests
18+
permissions:
19+
contents: read
20+
pull-requests: write
21+
steps:
22+
- name: Auto approve Dependabot PR
23+
uses: secure-software-engineering/actions/dependabot@develop
24+
with:
25+
token: ${{ secrets.AUTO_MERGE_PAT }}

0 commit comments

Comments
 (0)