Skip to content

Commit 789b2a0

Browse files
committed
Add "pull-requests: write" permission to the labeler
Copied from the example at https://github.com/actions/labeler?tab=readme-ov-file#outputs Trying to fix https://github.com/apache/avro/actions/runs/10460767435/job/28981928566?pr=3102 ``` Run actions/labeler@v5 with: repo-token: *** sync-labels: true configuration-path: .github/labeler.yml dot: true The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api Warning: The action requires write permission to add labels to pull requests. For more information please refer to the action documentation: https://github.com/actions/labeler#permissions Error: Resource not accessible by integration ``` Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
1 parent c1b6955 commit 789b2a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on: pull_request_target
2121

2222
jobs:
2323
triage:
24+
permissions:
25+
contents: read
26+
pull-requests: write
2427
runs-on: ubuntu-latest
2528
steps:
2629
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)