Skip to content

Commit 593e901

Browse files
authored
PR label management needs pR write permission (#1608)
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 4724183 commit 593e901

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/ready-for-review-label.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ name: Ready-for-review label
44
# run the `manage-ready-for-review.yml` workflow, to remove the
55
# "ready-for-review" label from a PR if its no longer needed.
66
#
7-
# `pull_request_target` (rather than `pull_request`) is required so that the job
8-
# has a read/write token for pull requests opened from forks. This is safe here
9-
# because the reusable workflow never checks out or executes pull-request code.
10-
#
117
# The label removal workflow lives in hyperlight-dev's `.github` repository. To apply this workflow
128
# to another repository, copy this file to that repo.
139
on:
14-
pull_request_target:
10+
pull_request:
1511
types: [closed, converted_to_draft]
1612
pull_request_review:
1713
types: [submitted, dismissed]
@@ -23,11 +19,11 @@ concurrency:
2319

2420
permissions:
2521
contents: read
26-
pull-requests: read
22+
pull-requests: write
2723
issues: write
2824
jobs:
2925
manage-label:
3026
# Shared workflow in the org-wide `.github` repository, pinned to a commit SHA
31-
uses: hyperlight-dev/.github/.github/workflows/manage-ready-for-review.yml@55e0ed4457b40f371ec9b6f2828397b09a833a43
27+
uses: hyperlight-dev/.github/.github/workflows/manage-ready-for-review.yml@e5e471d927d3a72676ab48433da8a99d15a32ad7
3228
with:
3329
pr-number: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)