From e9accfbed7a826e433d4cfbd162136f4a74a4096 Mon Sep 17 00:00:00 2001 From: Yihan Zhao Date: Fri, 1 Nov 2024 11:12:24 +1100 Subject: [PATCH] Allow builds from a forked PR to access secrets on approval (#1001) --- .github/workflows/cpu_local_marqo.yml | 3 +++ .github/workflows/largemodel_unit_test_CI.yml | 3 +++ .github/workflows/unit_test_200gb_CI.yml | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/cpu_local_marqo.yml b/.github/workflows/cpu_local_marqo.yml index 19e70f6bd..34020ba5a 100644 --- a/.github/workflows/cpu_local_marqo.yml +++ b/.github/workflows/cpu_local_marqo.yml @@ -35,6 +35,9 @@ on: pull_request: branches: - mainline + pull_request_target: + branches: + - mainline permissions: contents: read diff --git a/.github/workflows/largemodel_unit_test_CI.yml b/.github/workflows/largemodel_unit_test_CI.yml index 64402cdae..7bfaacb4b 100644 --- a/.github/workflows/largemodel_unit_test_CI.yml +++ b/.github/workflows/largemodel_unit_test_CI.yml @@ -24,6 +24,9 @@ on: pull_request: branches: - mainline + pull_request_target: + branches: + - mainline concurrency: group: large-model-unit-tests-${{ inputs.marqo_ref }} diff --git a/.github/workflows/unit_test_200gb_CI.yml b/.github/workflows/unit_test_200gb_CI.yml index 06b6f13cf..52c1b5e95 100644 --- a/.github/workflows/unit_test_200gb_CI.yml +++ b/.github/workflows/unit_test_200gb_CI.yml @@ -12,6 +12,10 @@ on: branches: - mainline - releases/* + pull_request_target: + branches: + - mainline + - releases/* concurrency: group: unit-tests-${{ github.ref }}