Skip to content

Commit 842f7f5

Browse files
committed
gl-code-quality-report.json location fixed
1 parent 1e08ec3 commit 842f7f5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,8 @@ func main() {
142142
if cfg.GitLabReport != "" {
143143
// If configured with artifacts directory, put it there
144144
reportPath := cfg.GitLabReport
145-
if cfg.Output != "" && !filepath.IsAbs(reportPath) && !strings.Contains(reportPath, "/") {
146-
reportPath = filepath.Join(cfg.Output, reportPath)
147-
}
145+
// We do NOT automatically join with cfg.Output anymore, as that forces it into artifacts/
146+
// Users should specify full relative path in config if they want it in artifacts/
148147

149148
if err := generateGitLabReport(reportPath, allIssues); err != nil {
150149
fmt.Fprintf(os.Stderr, "❌ Failed to generate GitLab report: %v\n", err)

0 commit comments

Comments
 (0)