Commit f251c39
authored
fix(sonar): skip SonarCloud analysis on template repo (#80)
* fix(sonar): skip SonarCloud analysis on template repo
Remove `.github/workflows/sonarcloud.yml` and root-level
`sonar-project.properties`. As Jinja2 meta-code, this template body is not
statically analyzable as Python, and the analysis was failing with a curl
403 from the SonarCloud quality-gate API (the project key was effectively
unanalyzable: source paths like `{{cookiecutter.project_slug}}/` are literal
text on the template-repo side and only become real directories in the
rendered child project).
Generated child projects continue to opt into their own SonarCloud
analysis via the rendered `sonar-project.properties` and `sonarcloud.yml`
workflow that ship inside the template's rendered output directory; that
analysis is unaffected because it runs after cookiecutter has rendered
the placeholders.
Refs: Phase 3 Bucket E (CI Repair Sprint)
* fix(docs): remove stale SonarCloud references after sonarcloud.yml deletion
- README.md: drop SonarCloud badges; update setup section to reflect that
the template repo is excluded from analysis (Jinja2 placeholders are not
statically analyzable as Python)
- CLAUDE.md: remove Template Repository subsection from SonarCloud section;
retain Generated Projects subsection unchanged
- ci.yml: drop SonarQube feature line from header; update Layer 3 description
to Ruff/BasedPyright/Bandit to match actual toolchain
- CHANGELOG.md: reorder [Unreleased] subsections to Added, Changed, Removed,
Fixed per Keep a Changelog 1.1.0 spec (Removed was misplaced before Changed)
- CONTRIBUTING.md: replace SonarCloud with qlty in automated reviewers list
- .sonarlint/connectedMode.json: delete orphaned IDE config pointing to the
now-deleted analysis project (caused SonarLint connection errors)
- .secrets.baseline: add SHA-pin entries from .pre-commit-config.yaml that
were false-positived as high-entropy secrets1 parent 1fc987a commit f251c39
9 files changed
Lines changed: 102 additions & 232 deletions
File tree
- .github/workflows
- .sonarlint
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
298 | 296 | | |
299 | 297 | | |
300 | 298 | | |
| |||
391 | 389 | | |
392 | 390 | | |
393 | 391 | | |
394 | | - | |
395 | 392 | | |
396 | 393 | | |
397 | 394 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
136 | 208 | | |
137 | 209 | | |
138 | 210 | | |
139 | 211 | | |
140 | 212 | | |
141 | 213 | | |
142 | | - | |
| 214 | + | |
143 | 215 | | |
144 | 216 | | |
145 | 217 | | |
| |||
234 | 306 | | |
235 | 307 | | |
236 | 308 | | |
237 | | - | |
| 309 | + | |
238 | 310 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
117 | 127 | | |
118 | 128 | | |
119 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
605 | 583 | | |
606 | 584 | | |
607 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 4 | | |
10 | 5 | | |
11 | 6 | | |
| |||
296 | 291 | | |
297 | 292 | | |
298 | 293 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
309 | 299 | | |
310 | 300 | | |
311 | 301 | | |
| |||
357 | 347 | | |
358 | 348 | | |
359 | 349 | | |
360 | | - | |
| 350 | + | |
361 | 351 | | |
362 | 352 | | |
363 | 353 | | |
| |||
0 commit comments