From a89ed3ca6eea8fd5c386a30417e98610ba5dfbaf 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 65b4fe5b0..48107f36f 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 f2a9abbfc..b9e8e95e4 100644 --- a/.github/workflows/largemodel_unit_test_CI.yml +++ b/.github/workflows/largemodel_unit_test_CI.yml @@ -12,6 +12,9 @@ on: pull_request: branches: - mainline + pull_request_target: + branches: + - mainline concurrency: group: large-model-unit-tests-${{ github.ref }} diff --git a/.github/workflows/unit_test_200gb_CI.yml b/.github/workflows/unit_test_200gb_CI.yml index 7b08028bf..89a12a452 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 }}