From 1a3e4d10c0171c247e70adc39a73814fa1a0d445 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Tue, 2 Jan 2024 09:34:59 -0500 Subject: [PATCH] chore: Update permissions used for assigning team labels (#12984) * chore: Inherit secrets for assigning team labels * Added workflow_call for testing * Added this branch for testing * Moved secrets label * Trying to set permissions differently * Removed testing branch --- .github/workflows/pr-assign-team-label.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pr-assign-team-label.yml b/.github/workflows/pr-assign-team-label.yml index ecb601f75c..3004285940 100644 --- a/.github/workflows/pr-assign-team-label.yml +++ b/.github/workflows/pr-assign-team-label.yml @@ -1,11 +1,15 @@ name: Assign PR team labels on: + workflow_call: pull_request: branches: - main jobs: team-labels: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v2