From 22b2ff8079f254893f837ae79b1bc801b3e4f3f5 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Tue, 28 Nov 2023 09:54:31 +0100 Subject: [PATCH] Update size workflow --- .github/workflows/size-label.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml index adf4a0c4..069c1adc 100644 --- a/.github/workflows/size-label.yml +++ b/.github/workflows/size-label.yml @@ -1,14 +1,20 @@ name: Size Label on: - pull_request_target: - types: [opened, reopened, synchronize] + pull_request: + types: + - opened + - edited + - synchronize jobs: size-label: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - name: size-label - uses: pascalgn/size-label-action@v0.4.3 + uses: pascalgn/size-label-action@v0.5.0 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"