Skip to content

Commit e781816

Browse files
GeorgeSapkinrobimarko
authored andcommitted
formal: fix workflow permissions
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]> Link: openwrt/openwrt#20930 (cherry picked from commit 9f6c16e) Link: openwrt/openwrt#20986 Signed-off-by: Robert Marko <[email protected]>
1 parent 913e26b commit e781816

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/formal.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ on:
55

66
permissions:
77
contents: read
8+
pull-requests: write
89

910
jobs:
1011
build:
1112
name: Test Formalities
1213
uses: openwrt/actions-shared-workflows/.github/workflows/formal.yml@main
14+
# with:
15+
# # Post formality check summaries to the PR.
16+
# # Repo's permissions need to be updated for actions to modify PRs:
17+
# # https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment
18+
# post_comment: true

0 commit comments

Comments
 (0)