Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 4f35ce1

Browse files
Add all UTMs env vars needed by the snyk CLI to forward to the auth landing page so they can better track the campaign
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
1 parent c98e6de commit 4f35ce1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/provider/snyk.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ func (s *snykProvider) Authenticate(token string) error {
129129
}
130130
}
131131
cmd := s.newCommand("auth", token)
132+
cmd.Env = append(cmd.Env,
133+
"SNYK_UTM_MEDIUM=Partner",
134+
"SNYK_UTM_SOURCE=Docker",
135+
"SNYK_UTM_CAMPAIGN=Docker-Desktop-2020",
136+
"SNYK_INTEGRATION_NAME=DOCKER_DESKTOP")
132137
cmd.Stdout = os.Stdout
133138
cmd.Stderr = os.Stderr
134139
return checkCommandErr(cmd.Run())

0 commit comments

Comments
 (0)