test
OmarHatem committed
Dec 11, 2025 at 02:52 UTC
56748ebe9cde2431502e3e650fa4300e46b3d8fe
1 file changed
+5
-7
.github/workflows/pr_test_build_android.yml
+5
-7
@@ -3,32 +3,30 @@ name: Cake Wallet Android
3
on:
4
pull_request:
5
pull_request_target:
6
+ types: [opened, synchronize, reopened, labeled]
7
8
defaults:
9
run:
10
shell: bash
11
12
jobs:
12
- # PATH A: Internal PRs (Runs immediately)
13
+ # PATH A: Internal PRs (Triggered by standard 'pull_request')
14
internal-build:
15
if: |
16
github.event_name == 'pull_request' &&
16
- github.event.pull_request.head.repo.full_name == github.repository
17
+ github.event.pull_request.head.repo.fork == false
18
uses: ./.github/workflows/reusable-build.yml
19
with:
20
ref: ${{ github.event.pull_request.head.sha }}
21
pr_number: ${{ github.head_ref || github.ref_name }}
22
secrets: inherit # Passes all secrets automatically
23
23
- # PATH B: External Forks (Waits for Approval)
24
+ # PATH B: External Forks (Triggered by 'pull_request_target' for security)
25
external-build:
26
if: |
27
github.event_name == 'pull_request_target' &&
27
- github.event.pull_request.head.repo.full_name != github.repository
28
-
29
- # This applies the specific environment rule ONLY to forks
28
+ github.event.pull_request.head.repo.fork == true
29
environment: external_contributors
31
-
30
uses: ./.github/workflows/reusable-build.yml
31
with:
32
ref: ${{ github.event.pull_request.head.sha }}