Skip to content

Commit 9741fc3

Browse files
1 parent 8c4693a commit 9741fc3

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/Dependabot.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,44 @@ concurrency:
55
cancel-in-progress: true
66

77
permissions:
8-
security-events: write
98
contents: write
109
pull-requests: write
1110

1211
on:
13-
workflow_dispatch:
1412
pull_request:
1513

1614
jobs:
1715
Approve:
1816
runs-on: ubuntu-latest
1917

20-
if: ${{ github.actor == 'dependabot[bot]' }}
18+
if:
19+
${{ github.actor == 'dependabot[bot]' &&
20+
github.event.pull_request.user.login == 'dependabot[bot]' }}
2121

2222
steps:
2323
- uses: dependabot/fetch-metadata@v3.1.0
2424
with:
25-
github-token: "${{ secrets.GITHUB_TOKEN }}"
25+
github-token: "${{ secrets.DEPENDABOT_TOKEN }}"
2626

2727
- run: gh pr review --approve "$PR_URL"
2828
env:
2929
PR_URL: ${{github.event.pull_request.html_url}}
30-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
30+
GITHUB_TOKEN: ${{secrets.DEPENDABOT_TOKEN}}
3131

3232
Merge:
3333
runs-on: ubuntu-latest
34+
needs: Approve
3435

35-
if: ${{ github.actor == 'dependabot[bot]' }}
36+
if:
37+
${{ github.actor == 'dependabot[bot]' &&
38+
github.event.pull_request.user.login == 'dependabot[bot]' }}
3639

3740
steps:
3841
- uses: dependabot/fetch-metadata@v3.1.0
3942
with:
40-
github-token: "${{ secrets.GITHUB_TOKEN }}"
43+
github-token: "${{ secrets.DEPENDABOT_TOKEN }}"
4144

4245
- run: gh pr merge --auto --merge "$PR_URL"
4346
env:
4447
PR_URL: ${{github.event.pull_request.html_url}}
45-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
48+
GITHUB_TOKEN: ${{secrets.DEPENDABOT_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"prepublishOnly": "Build 'Source/**/*.ts'"
2323
},
2424
"devDependencies": {
25-
"@cloudflare/workers-types": "4.20260523.1",
25+
"@cloudflare/workers-types": "4.20260524.1",
2626
"@playform/build": "0.3.2"
2727
},
2828
"publishConfig": {

0 commit comments

Comments
 (0)