Skip to content

Commit 2a99b7b

Browse files
authored
ci: check dependabot prs originate from repo (#186)
1 parent 468d888 commit 2a99b7b

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

.github/workflows/plugins-ci-elasticsearch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
name: Automerge Dependabot PRs
8686
if: >
8787
github.event_name == 'pull_request' &&
88+
github.event.pull_request.head.repo.full_name == github.repository &&
8889
github.event.pull_request.user.login == 'dependabot[bot]'
8990
needs: [quality-check, test]
9091
permissions:

.github/workflows/plugins-ci-kafka.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
name: Automerge Dependabot PRs
9090
if: >
9191
github.event_name == 'pull_request' &&
92+
github.event.pull_request.head.repo.full_name == github.repository &&
9293
github.event.pull_request.user.login == 'dependabot[bot]'
9394
needs: [quality-check, test]
9495
permissions:

.github/workflows/plugins-ci-mongo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
name: Automerge Dependabot PRs
7878
if: >
7979
github.event_name == 'pull_request' &&
80+
github.event.pull_request.head.repo.full_name == github.repository &&
8081
github.event.pull_request.user.login == 'dependabot[bot]'
8182
needs: [quality-check, test]
8283
permissions:

.github/workflows/plugins-ci-mysql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
name: Automerge Dependabot PRs
8484
if: >
8585
github.event_name == 'pull_request' &&
86+
github.event.pull_request.head.repo.full_name == github.repository &&
8687
github.event.pull_request.user.login == 'dependabot[bot]'
8788
needs: [quality-check, test]
8889
permissions:

.github/workflows/plugins-ci-postgres.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
name: Automerge Dependabot PRs
9999
if: >
100100
github.event_name == 'pull_request' &&
101+
github.event.pull_request.head.repo.full_name == github.repository &&
101102
github.event.pull_request.user.login == 'dependabot[bot]'
102103
needs: [quality-check, test]
103104
permissions:

.github/workflows/plugins-ci-redis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
name: Automerge Dependabot PRs
7777
if: >
7878
github.event_name == 'pull_request' &&
79+
github.event.pull_request.head.repo.full_name == github.repository &&
7980
github.event.pull_request.user.login == 'dependabot[bot]'
8081
needs: [quality-check, test]
8182
permissions:

.github/workflows/plugins-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ jobs:
122122
needs.test.result == 'success' &&
123123
(needs.fastify-dependency-integration.result == 'success' || needs.fastify-dependency-integration.result == 'skipped') &&
124124
github.event_name == 'pull_request' &&
125+
github.event.pull_request.head.repo.full_name == github.repository &&
125126
github.event.pull_request.user.login == 'dependabot[bot]'
126127
needs: [fastify-dependency-integration, quality-check, test]
127128
permissions:

0 commit comments

Comments
 (0)