Skip to content

Commit

Permalink
fix #327, change dependency track consumer's debug flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Aug 30, 2024
1 parent 7b0fdc9 commit d34a43b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions components/consumers/dependency-track/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
client *dtrack.Client
ownerAnnotation string
// used for debugging, turns off certificate and enables debug
debug bool
debugDT bool
)

func main() {
Expand All @@ -37,7 +37,7 @@ func main() {
flag.StringVar(&projectName, "projectName", "", "dependency track project name")
flag.StringVar(&projectUUID, "projectUUID", "", "dependency track project name")
flag.StringVar(&projectVersion, "projectVersion", "", "dependency track project version")
flag.BoolVar(&debug, "debug", false, "setup client with no tls and enable debug")
flag.BoolVar(&debugDT, "debugDT", false, "setup client with no tls and enable debug")
flag.StringVar(
&ownerAnnotation,
"ownerAnnotation",
Expand Down Expand Up @@ -71,11 +71,11 @@ func main() {
dtrack.WithHttpClient(
&http.Client{Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: debug,
InsecureSkipVerify: debugDT,
},
},
}),
dtrack.WithDebug(debug),
dtrack.WithDebug(debugDT),
dtrack.WithAPIKey(apiKey),
)
if err != nil {
Expand All @@ -86,7 +86,7 @@ func main() {
if err != nil {
log.Fatalf("cannot connect to Dependency Track at %s, err:'%v'", authURL, err)
}
slog.Info("connection to DT successful listed projects in instance", "projects", abt.Projects)
slog.Info("Connection to DT successful, projects in instance:", "instance", abt.Projects)
if consumers.Raw {
responses, err := consumers.LoadToolResponse()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion components/consumers/dependency-track/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ spec:
"-projectVersion", "$(params.consumer-dependency-track-project-version)",
"-projectUUID", "$(params.consumer-dependency-track-project-uuid)",
"-ownerAnnotation","$(params.consumer-dependency-track-owner-annotation)",
"-debug", "$(params.consumer-dependency-track-debug)"
"-debugDT", "$(params.consumer-dependency-track-debug)"
]

0 comments on commit d34a43b

Please sign in to comment.