zrlw commented on code in PR #15391:
URL: https://github.com/apache/dubbo/pull/15391#discussion_r2094765760


##########
.github/workflows/build-and-test-pr.yml:
##########
@@ -36,6 +36,9 @@ jobs:
   check-format:
     name: "Check if code needs formatting"
     runs-on: ubuntu-latest
+    permissions:
+      # Give the default GITHUB_TOKEN write permission to commit the changed 
files back to the repository.
+      contents: write

Review Comment:
   Controlling permissions for GITHUB_TOKEN
   
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
   contents: write allows the action to create a release.



-- 
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]

Reply via email to