Skip to content

Commit

Permalink
Test Config values
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Apr 19, 2024
1 parent ce52cc8 commit da20538
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/scan/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,13 @@ func (dScanner *DebrickedScanner) scan(options DebrickedOptions, gitMetaObject g

func (dScanner *DebrickedScanner) getDebrickedConfig(path string, exclusions []string) *upload.DebrickedConfig {
configPath := dScanner.finder.GetConfigPath(path, exclusions)
fmt.Println(configPath)
if configPath == "" {
return nil
}
debrickedConfig, err := json.Marshal(upload.GetDebrickedConfig(configPath))
fmt.Println(string(debrickedConfig))
fmt.Println(err)

return upload.GetDebrickedConfig(configPath)
}
Expand Down
2 changes: 2 additions & 0 deletions internal/upload/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ func (uploadBatch *uploadBatch) initAnalysis() error {
DebrickedIntegration: "cli",
})

fmt.Println(string(body))

if err != nil {
return err
}
Expand Down

0 comments on commit da20538

Please sign in to comment.