Commit 24d544a
committed
ci: check out base repo in clang-tidy-bazel-post so reviewdog finds .git
Reviewdog's github-pr-review reporter resolves the local git root before
flushing comments. On a fresh runner containing only the downloaded
artifact, reviewdog logs "reviewdog: .git not found" and silently no-ops
(exit 0, no review posted). Confirmed locally by running reviewdog from a
scratch dir against the same synthesized event + artifact: zero comments
posted; running the same command from inside a checkout works.
Add a shallow actions/checkout step before the artifact download. The
default ref in workflow_run context is the base repo's default branch,
which is safe (no fork code) and sufficient — reviewdog fetches the
actual PR diff via the GitHub API, so the local SHA need not match.
Signed-off-by: Joao Luis Sombrio <sombrio@sombrasoft.dev>1 parent 2d79066 commit 24d544a
1 file changed
Lines changed: 14 additions & 0 deletions
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
| |||
0 commit comments