Skip to content

Commit

Permalink
fix: only allow workflows from the main repository
Browse files Browse the repository at this point in the history
  • Loading branch information
minhuw committed Nov 20, 2024
1 parent 0de0617 commit acb2cb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
paths-ignore:
- 'documents/**'
- 'assets/**'
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -20,6 +24,7 @@ jobs:
matrix:
kernel: [ "5.4", "5.15", "6.8", "6.10" ]
runs-on: ${{ matrix.kernel }}
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
matrix:
kernel: [ "5.4", "5.15", "6.8", "6.10" ]
runs-on: ${{ matrix.kernel }}
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit acb2cb6

Please sign in to comment.