From 384ed57653d87f4d62f43c737f5db58eff2a14cc Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Fri, 22 Mar 2024 13:58:51 -0500 Subject: [PATCH 1/3] fix team name --- .github/workflows/community-label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/community-label.yml b/.github/workflows/community-label.yml index adaf2b4a2ab..64cc9039ed5 100644 --- a/.github/workflows/community-label.yml +++ b/.github/workflows/community-label.yml @@ -32,6 +32,6 @@ jobs: github.event.action == 'ready_for_review' ) uses: dbt-labs/actions/.github/workflows/label-community.yml@main with: - github_team: 'core' + github_team: 'core-group' label: 'community' secrets: inherit From a6f56f933aa8701eeb586b17229bd68014f7b5cf Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Fri, 22 Mar 2024 14:41:32 -0500 Subject: [PATCH 2/3] use correct trigger --- .github/workflows/community-label.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/community-label.yml b/.github/workflows/community-label.yml index 64cc9039ed5..ba5637da4cb 100644 --- a/.github/workflows/community-label.yml +++ b/.github/workflows/community-label.yml @@ -11,7 +11,8 @@ name: Label community PRs on: - pull_request: + # have to use pull_request_target since community PRs come from forks + pull_request_target: types: [opened, ready_for_review] defaults: From d3de87e3de7ff9a7b9cf616b5c230e990f56ff8d Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 25 Mar 2024 18:09:32 -0500 Subject: [PATCH 3/3] trickle down permissions --- .github/workflows/community-label.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/community-label.yml b/.github/workflows/community-label.yml index ba5637da4cb..3b75a3c14e7 100644 --- a/.github/workflows/community-label.yml +++ b/.github/workflows/community-label.yml @@ -21,6 +21,7 @@ defaults: permissions: pull-requests: write # labels PRs + contents: read # reads team membership jobs: open_issues: