davsclaus commented on code in PR #23653:
URL: https://github.com/apache/camel/pull/23653#discussion_r3329915099
##########
.github/workflows/pr-labeler.yml:
##########
@@ -24,6 +24,10 @@ on:
types:
- completed
+
+permissions:
+ contents: read
Review Comment:
This workflow uses `actions/labeler` (line 67) to add labels to PRs, and
downloads artifacts via the Actions API. Both need permissions beyond
`contents: read`.
```suggestion
permissions:
contents: read
pull-requests: write
actions: read
```
##########
.github/workflows/pr-commenter.yml:
##########
@@ -24,6 +24,10 @@ on:
types:
- completed
+
+permissions:
+ contents: read
Review Comment:
This workflow calls `github.rest.issues.createComment()` (line 87) to write
a welcome comment on PRs, and uses the Actions API to download artifacts. With
only `contents: read` declared, `pull-requests` and `actions` permissions
default to `none`, breaking both operations.
```suggestion
permissions:
contents: read
pull-requests: write
actions: read
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]