Commit 115dc93
authored
fix(go-ci): take coverage report ownership without sudo (#29)
The 'Augment coverage report with cyclomatic complexity' step ran
'sudo chown' to reclaim code-coverage-results.md (written as root by the
irongut/CodeCoverageSummary Docker action). Self-hosted runners lack
passwordless sudo, so the step failed with 'sudo: a password is required',
breaking every Go consumer's build-and-test job. Replace the file with a
runner-owned copy via cp + mv -f when it is not writable; this needs only
workspace-directory permissions and is a no-op on GitHub-hosted runners.1 parent 796fb81 commit 115dc93
2 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
215 | 220 | | |
216 | 221 | | |
217 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
0 commit comments