From c0506790589ac320318316bc2c461104b58f96d3 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Tue, 2 Jan 2024 09:52:18 -0500 Subject: [PATCH 1/2] chore: Use pull_request_target for assigning team labels --- .github/workflows/pr-assign-team-label.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-assign-team-label.yml b/.github/workflows/pr-assign-team-label.yml index 3004285940b5d7..1efe9ec6cf703d 100644 --- a/.github/workflows/pr-assign-team-label.yml +++ b/.github/workflows/pr-assign-team-label.yml @@ -1,7 +1,7 @@ name: Assign PR team labels on: workflow_call: - pull_request: + pull_request_target: branches: - main @@ -14,6 +14,7 @@ jobs: steps: - uses: actions/checkout@v2 - uses: equitybee/team-label-action@main + if: ${{ secrets.GH_ACCESS_TOKEN != '' }} with: repo-token: ${{ secrets.GH_ACCESS_TOKEN }} organization-name: calcom From e40017023abc9dcb46309b5667d6e34f986c605e Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Tue, 2 Jan 2024 09:55:01 -0500 Subject: [PATCH 2/2] Allowing for opened PRs --- .github/workflows/pr-assign-team-label.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-assign-team-label.yml b/.github/workflows/pr-assign-team-label.yml index 1efe9ec6cf703d..4a41d2e5844083 100644 --- a/.github/workflows/pr-assign-team-label.yml +++ b/.github/workflows/pr-assign-team-label.yml @@ -2,8 +2,8 @@ name: Assign PR team labels on: workflow_call: pull_request_target: - branches: - - main + types: + - opened jobs: team-labels: