Skip to content

Commit 05c7f87

Browse files
committed
Add additional guardrails for PR check behaviors
Signed-off-by: lelia <lelia@socket.dev>
1 parent c33330b commit 05c7f87

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/pr-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
preview:
8+
if: github.event.pull_request.head.repo.full_name == github.repository
89
runs-on: ubuntu-latest
910
permissions:
1011
id-token: write

.github/workflows/version-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
4343
- name: Manage PR Comment
4444
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
45-
if: always()
45+
if: always() && github.event.pull_request.head.repo.full_name == github.repository
4646
env:
4747
MAIN_VERSION: ${{ env.MAIN_VERSION }}
4848
PR_VERSION: ${{ env.PR_VERSION }}

0 commit comments

Comments
 (0)