Skip to content

Commit 7f9234a

Browse files
committed
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 <george@sapk.in>
1 parent 997a981 commit 7f9234a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/formal.yml

Lines changed: 7 additions & 1 deletion
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:
10-
build:
11+
formalities:
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)