You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 581aa6d
Browse filesBrowse the repository at this point in the historyBrowse files
<p>Set thread-comments: update and one comment lists the results, edited on each push while there are findings. It is posted by github-actions[bot] or your own App, and needs pull-requests: write, so it fails on pull requests from forks.</p>
327
+
<p>Set thread-comments: update and one comment lists the results, edited on each push while there are findings. It is posted by github-actions[bot] or your own App, and needs pull-requests: write, so pull requests from forks need a second workflow to post it.</p>
| Reviews or comments on fork PRs |comment via [`workflow_run`](https://cpp-linter.github.io/cpp-linter-action/examples/), no review| — | — | ✓ split workflow | ✓ `workflow_run`| ✓ `pull_request_target`| — |
61
62
| Only changed files / lines | ✓ both | ✗ | ✗ | ✓ diff | changed lines only | ✓ lines | staged files |
62
63
| Choose the LLVM version |[12–23, a path, or the runner's](https://cpp-linter.github.io/cpp-linter-action/inputs-outputs/#version)| 3–22 | 5–20 | 14, 17–21 | — | ✗ | via `rev`|
63
64
| Installs the tools itself | ✓ | Docker run | Docker | Docker (2–3 min build) | ✗ | Docker | ✓ wheel |
@@ -88,7 +89,8 @@ platisd/clang-tidy-pr-comments does exactly that step, and nothing else.
88
89
89
90
cpp-linter does not run cppcheck; JacobDomagala/StaticAnalysis runs it next to clang-tidy. If most
90
91
pull requests come from forks, clang-tidy-review's split workflow or clang-tidy-pr-comments'
91
-
`workflow_run` recipe can post reviews on them, while cpp-linter-action shows annotations only. If
92
+
`workflow_run` recipe can post reviews on them; cpp-linter-action's
93
+
[recipe](https://cpp-linter.github.io/cpp-linter-action/examples/) posts the comment, not a review. If
92
94
you lint many languages through one framework, reviewdog or MegaLinter fit better; neither ships
93
95
clang-tidy support, and MegaLinter's C/C++ linters are clang-format, cpplint and cppcheck.
94
96
@@ -148,8 +150,9 @@ into review suggestions and needs `pull-requests: write`.
148
150
```
149
151
150
152
The review comes from the same step, without waiting for a Docker image to build, and a new one
151
-
is posted on each push. Keep `pull-requests: write` on the job. Pull requests from forks get
152
-
annotations only; if most of yours come from forks, stay with the split workflow.
153
+
is posted on each push. Keep `pull-requests: write` on the job. Pull requests from forks get no
154
+
review; the [PR comments from forks](https://cpp-linter.github.io/cpp-linter-action/examples/) recipe posts the
155
+
comment instead. If you need review suggestions on fork pull requests, stay with the split workflow.
0 commit comments