From 9c2d3221d55ce0fe7fce00869d9a2d882c4cff41 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:15:17 +0530 Subject: [PATCH 1/3] chore(ci): add perms --- .github/workflows/labeler.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index ceb1b7885..74b2b0169 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,13 +1,15 @@ name: 'Pull Request Labeler' + on: pull_request: types: [opened, labeled, unlabeled] -jobs: - triage: - permissions: +permissions: contents: read pull-requests: write + +jobs: + triage: runs-on: ubuntu-latest steps: - name: Checkout repository From ed8f87909644505eb93f61c4f5429d2272e9ff9d Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:18:02 +0530 Subject: [PATCH 2/3] chore(ci): change to pull_request_target --- .github/workflows/labeler.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 74b2b0169..a0d95b854 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,15 +1,14 @@ name: 'Pull Request Labeler' on: - pull_request: + pull_request_target: types: [opened, labeled, unlabeled] -permissions: - contents: read - pull-requests: write - jobs: triage: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - name: Checkout repository From 797ad9dfc4349a839f5d65d3e83f4325ad6b9bf0 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:23:04 +0530 Subject: [PATCH 3/3] Update labeler.yml --- .github/workflows/labeler.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index a0d95b854..8abf0b8a4 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,8 +1,6 @@ name: 'Pull Request Labeler' -on: - pull_request_target: - types: [opened, labeled, unlabeled] +on: [pull_request_target] jobs: triage: