Commit c9ca88d
committed
Fix SonarQube error and refine trigger conditions
The SonarQube weekly analysis workflow was failing due to a missing
`compile_commands.json` file. This occurs because the build-wrapper
output directory was previously referenced with an incorrect path
containing an unintended quotation mark, causing the CFamily plugin
to abort with a NoSuchFileException.
This change fixes the failure by aligning the workflow with
SonarCloud recommended usage.
Additionally, this commit updates the workflow triggers and
execution conditions:
- Added explicit triggers for push/PR events when the workflow
file itself is modified, enabling validation of workflow
changes
- Allow PRs to validate the build process while preventing unauthorized
SonarCloud access
The workflow will now:
- Run all build steps in PRs for validation purposes
- Execute SonarQube scans only on:
* Weekly scheduled runs (apache/cloudberry only)
* Manual workflow dispatch (apache/cloudberry only)
* Push to main branch when workflow file changes
(apache/cloudberry only)1 parent 5f591f2 commit c9ca88d
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| 124 | + | |
115 | 125 | | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
119 | 129 | | |
120 | | - | |
| 130 | + | |
0 commit comments