formal: fix workflow permissions
authorGeorge Sapkin <[email protected]>
Wed, 26 Nov 2025 13:34:57 +0000 (15:34 +0200)
committerJiri Slachta <[email protected]>
Wed, 3 Dec 2025 12:04:54 +0000 (13:04 +0100)
Fix formality check permissions that are needed to post optional
summaries back to the PR.

Link: openwrt/actions-shared-workflows#64
Signed-off-by: George Sapkin <[email protected]>
.github/workflows/formal.yml

index 081129d6f0e21b6d7a501e8d32d5813f935f0428..3fa417f6d2bb8ee83fb2e34351cbdea507a58a72 100644 (file)
@@ -5,8 +5,14 @@ on:
 
 permissions:
   contents: read
+  pull-requests: write
 
 jobs:
-  build:
+  formalities:
     name: Test Formalities
     uses: openwrt/actions-shared-workflows/.github/workflows/formal.yml@main
+    # with:
+    #   # Post formality check summaries to the PR.
+    #   # Repo's permissions need to be updated for actions to modify PRs:
+    #   # https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment
+    #   post_comment: true