From 01a277818909fbaaf9019680db6148c891c2568e Mon Sep 17 00:00:00 2001 From: Chris White Date: Fri, 6 Sep 2024 18:08:28 -0700 Subject: [PATCH] Fix labeler job (#15113) --- .github/workflows/labeler.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index a011e431245e..aa04444de723 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,6 +1,7 @@ name: Labeler -on: [pull_request] +# see https://github.com/actions/labeler/issues/136#issuecomment-1357839196 +on: [pull_request_target] permissions: contents: read @@ -12,6 +13,10 @@ jobs: contents: read pull-requests: write steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + fetch-depth: 0 - uses: actions/labeler@v5 with: repo-token: "${{ github.token }}"