From 4d975cc879f9fc4638ade6518cebd107e62b7a75 Mon Sep 17 00:00:00 2001 From: miguelgfierro Date: Thu, 10 Nov 2022 11:47:36 +0100 Subject: [PATCH] remove pull_request_target --- .github/workflows/azureml-cpu-nightly.yml | 11 +---------- .github/workflows/azureml-gpu-nightly.yml | 11 +---------- .github/workflows/azureml-spark-nightly.yml | 11 +---------- .github/workflows/azureml-unit-tests.yml | 11 +---------- 4 files changed, 4 insertions(+), 40 deletions(-) diff --git a/.github/workflows/azureml-cpu-nightly.yml b/.github/workflows/azureml-cpu-nightly.yml index 0f7d54041b..40c9160714 100644 --- a/.github/workflows/azureml-cpu-nightly.yml +++ b/.github/workflows/azureml-cpu-nightly.yml @@ -22,16 +22,7 @@ on: # to ensure we are running the build on the staging branch, we can add push policy for it branches: [staging] - # pull_request_target allows execution of workflows in the context - # of a base repository. When a PR is raised from a forked repo, it - # gives the workflow access to AZUREML_TEST_CREDENTIALS, stored as - # a repo level secret, which is needed to trigger execution of unit - # tests on AzureML compute. - pull_request_target: - types: - - opened - - reopened - - synchronize + pull_request: branches: - 'main' paths: diff --git a/.github/workflows/azureml-gpu-nightly.yml b/.github/workflows/azureml-gpu-nightly.yml index df4ab17109..135d1676ac 100644 --- a/.github/workflows/azureml-gpu-nightly.yml +++ b/.github/workflows/azureml-gpu-nightly.yml @@ -22,16 +22,7 @@ on: # to ensure we are running the build on the staging branch, we can add push policy for it branches: [staging] - # pull_request_target allows execution of workflows in the context - # of a base repository. When a PR is raised from a forked repo, it - # gives the workflow access to AZUREML_TEST_CREDENTIALS, stored as - # a repo level secret, which is needed to trigger execution of unit - # tests on AzureML compute. - pull_request_target: - types: - - opened - - reopened - - synchronize + pull_request: branches: - 'main' paths: diff --git a/.github/workflows/azureml-spark-nightly.yml b/.github/workflows/azureml-spark-nightly.yml index 7069731224..2190d21d60 100644 --- a/.github/workflows/azureml-spark-nightly.yml +++ b/.github/workflows/azureml-spark-nightly.yml @@ -22,16 +22,7 @@ on: # to ensure we are running the build on the staging branch, we can add push policy for it branches: [staging] - # pull_request_target allows execution of workflows in the context - # of a base repository. When a PR is raised from a forked repo, it - # gives the workflow access to AZUREML_TEST_CREDENTIALS, stored as - # a repo level secret, which is needed to trigger execution of unit - # tests on AzureML compute. - pull_request_target: - types: - - opened - - reopened - - synchronize + pull_request: branches: - 'main' paths: diff --git a/.github/workflows/azureml-unit-tests.yml b/.github/workflows/azureml-unit-tests.yml index 20273d30af..d983acef2f 100644 --- a/.github/workflows/azureml-unit-tests.yml +++ b/.github/workflows/azureml-unit-tests.yml @@ -6,16 +6,7 @@ name: azureml-unit-tests on: - # pull_request_target allows execution of workflows in the context - # of a base repository. When a PR is raised from a forked repo, it - # gives the workflow access to AZUREML_TEST_CREDENTIALS, stored as - # a repo level secret, which is needed to trigger execution of unit - # tests on AzureML compute. - pull_request_target: - types: - - opened - - reopened - - synchronize + pull_request: branches: - 'staging' - 'main'