aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/dependabot-approve-merge.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/dependabot-approve-merge.yml')
-rw-r--r--.github/workflows/dependabot-approve-merge.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/dependabot-approve-merge.yml b/.github/workflows/dependabot-approve-merge.yml
index 0d6b2c26d15..efe8bfe37f7 100644
--- a/.github/workflows/dependabot-approve-merge.yml
+++ b/.github/workflows/dependabot-approve-merge.yml
@@ -31,6 +31,12 @@ jobs:
pull-requests: write
steps:
+ - name: Disabled on forks
+ if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
+ run: |
+ echo 'Can not approve PRs from forks'
+ exit 1
+
# GitHub actions bot approve
- uses: hmarr/auto-approve-action@b40d6c9ed2fa10c9a2749eca7eb004418a705501 # v2
with: