Copilot commented on code in PR #1112: URL: https://github.com/apache/incubator-seata-go/pull/1112#discussion_r3123497435
########## .github/workflows/issue-robot.yml: ########## @@ -24,13 +24,16 @@ on: permissions: issues: write + pull-requests: write Review Comment: `pull-requests: write` is being granted at the workflow level, but this workflow only calls `github.rest.issues.createComment(...)` (no `pulls.*` APIs). To follow least-privilege, consider removing the `pull-requests: write` permission unless you can point to a concrete API call that requires it (keeping only `issues: write` for commenting). ```suggestion ``` -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
