From 2d40460cf768071d3a70b4cdc16075d23ca1ff25 Mon Sep 17 00:00:00 2001 From: Ricky Date: Mon, 24 Mar 2025 15:46:59 -0400 Subject: [PATCH] [ci] fix notify/label actions for forks (#32725) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Need this to run against target for forks to get the notification. This job does not checkout the code in the PR, so it's safe to run from the target. Also fixes failing checks on PRs: Screenshot 2025-03-24 at 3 28 30 PM --- .github/workflows/compiler_discord_notify.yml | 2 +- .github/workflows/runtime_discord_notify.yml | 2 +- .github/workflows/shared_label_core_team_prs.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compiler_discord_notify.yml b/.github/workflows/compiler_discord_notify.yml index 7d23facf87..3840e3787b 100644 --- a/.github/workflows/compiler_discord_notify.yml +++ b/.github/workflows/compiler_discord_notify.yml @@ -1,7 +1,7 @@ name: (Compiler) Discord Notify on: - pull_request: + pull_request_target: types: [opened, ready_for_review] paths: - compiler/** diff --git a/.github/workflows/runtime_discord_notify.yml b/.github/workflows/runtime_discord_notify.yml index 2e81e90d37..ad94e28054 100644 --- a/.github/workflows/runtime_discord_notify.yml +++ b/.github/workflows/runtime_discord_notify.yml @@ -1,7 +1,7 @@ name: (Runtime) Discord Notify on: - pull_request: + pull_request_target: types: [opened, ready_for_review] paths-ignore: - compiler/** diff --git a/.github/workflows/shared_label_core_team_prs.yml b/.github/workflows/shared_label_core_team_prs.yml index 78ff4b2b03..2cd9f290e0 100644 --- a/.github/workflows/shared_label_core_team_prs.yml +++ b/.github/workflows/shared_label_core_team_prs.yml @@ -1,7 +1,7 @@ name: (Shared) Label Core Team PRs on: - pull_request: + pull_request_target: permissions: {}