summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Sapkin2025-11-25 12:10:50 +0000
committerRobert Marko2025-11-29 17:05:53 +0000
commit9f6c16e722e6f1553e8242e907e3a23accc3912d (patch)
treec7a56ad9e74231f8b4a01c81d6dde15874367168
parent1aee2f5567e86b377c94d374929bc26e251bb3d7 (diff)
downloadopenwrt-9f6c16e722e6f1553e8242e907e3a23accc3912d.tar.gz
formal: fix workflow permissions
Fix formality check permissions that are needed to post optional summaries back to the PR. Link: https://github.com/openwrt/actions-shared-workflows/pull/64 Signed-off-by: George Sapkin <george@sapk.in> Link: https://github.com/openwrt/openwrt/pull/20930 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--.github/workflows/formal.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/formal.yml b/.github/workflows/formal.yml
index 081129d6f0..d57b17a562 100644
--- a/.github/workflows/formal.yml
+++ b/.github/workflows/formal.yml
@@ -5,8 +5,14 @@ on:
permissions:
contents: read
+ pull-requests: write
jobs:
build:
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