From 1b6ec1f944844f868cfac82f7d6f38d57c898900 Mon Sep 17 00:00:00 2001 From: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:43:18 +0100 Subject: [PATCH] Switched to pull_request_target event trigger in the Labels Github action. The `pull_request` trigger runs in the context of the PR, and has limited access to information stored in the base repo django/django. As access is needed to the label "no ticket" in django/django, use the `pull_request_target` trigger. --- .github/workflows/labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 77a8ca0a0a..637dd726a8 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -1,7 +1,7 @@ name: Labels on: - pull_request: + pull_request_target: types: [ edited, opened, reopened, ready_for_review ] concurrency: