From 57cc2081cd4641486c5322d460614344df1a6fd7 Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Sun, 25 Apr 2021 10:02:58 +0800 Subject: [PATCH] Fix workflow permission issue when running in merge branch (#7417) Fix the labeler workflow permission issue when merging from fork repo. It impacts the labeler workflow to support auto-merge for package versions upgrade on 202012 branch. The current workaround is to add the label "automerge" on the PR sent by mssonicbld, then the automerge workflow will merge the PR. --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index f70194e047..f8ae8e7199 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -7,7 +7,7 @@ name: Labeler on: - pull_request: + pull_request_target: types: - opened - reopened