Skip to content

Commit acb2cb6

Browse files
committed
fix: only allow workflows from the main repository
1 parent 0de0617 commit acb2cb6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
paths-ignore:
66
- 'documents/**'
77
- 'assets/**'
8+
pull_request:
9+
branches:
10+
- main
11+
types: [opened, synchronize, reopened]
812
# Allows you to run this workflow manually from the Actions tab
913
workflow_dispatch:
1014

@@ -20,6 +24,7 @@ jobs:
2024
matrix:
2125
kernel: [ "5.4", "5.15", "6.8", "6.10" ]
2226
runs-on: ${{ matrix.kernel }}
27+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
2328
steps:
2429
- uses: actions/checkout@v4
2530
with:

.github/workflows/verify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
matrix:
2020
kernel: [ "5.4", "5.15", "6.8", "6.10" ]
2121
runs-on: ${{ matrix.kernel }}
22+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
2223
steps:
2324
- uses: actions/checkout@v4
2425
with:

0 commit comments

Comments
 (0)