Skip to content

Commit deaeadc

Browse files
committed
chore: improved check for dependabot
1 parent 67edcba commit deaeadc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/auto-merge.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ jobs:
88
contents: write
99
id-token: write
1010
runs-on: ubuntu-latest
11-
if: github.actor == 'dependabot[bot]'
11+
# github.event.pull_request.user.login checks the actual PR author
12+
# also verify the repository to prevent workflow runs on forks
13+
if: |
14+
github.event.pull_request.user.login == 'dependabot[bot]' &&
15+
github.repository == 'contentful/experience-builder'
1216
steps:
1317
- name: Fetch Dependabot metadata
1418
id: dependabot-metadata

0 commit comments

Comments
 (0)