Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Add the env var SNYK_INTEGRATION_NAME=DOCKER_DESKTOP for all the snyk…
Browse files Browse the repository at this point in the history
… calls.

Signed-off-by: Silvin Lubecki <[email protected]>
  • Loading branch information
silvin-lubecki committed Sep 22, 2020
1 parent 265d37c commit 5cf098b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/provider/snyk.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ func (s *snykProvider) Authenticate(token string) error {
cmd.Env = append(cmd.Env,
"SNYK_UTM_MEDIUM=Partner",
"SNYK_UTM_SOURCE=Docker",
"SNYK_UTM_CAMPAIGN=Docker-Desktop-2020",
"SNYK_INTEGRATION_NAME=DOCKER_DESKTOP")
"SNYK_UTM_CAMPAIGN=Docker-Desktop-2020")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return checkCommandErr(cmd.Run())
Expand Down Expand Up @@ -188,7 +187,10 @@ func (s *snykProvider) Version() (string, error) {

func (s *snykProvider) newCommand(arg ...string) *exec.Cmd {
cmd := exec.CommandContext(s.context, s.path, arg...)
cmd.Env = append(os.Environ(), "NO_UPDATE_NOTIFIER=true", "SNYK_CFG_DISABLESUGGESTIONS=true")
cmd.Env = append(os.Environ(),
"NO_UPDATE_NOTIFIER=true",
"SNYK_CFG_DISABLESUGGESTIONS=true",
"SNYK_INTEGRATION_NAME=DOCKER_DESKTOP")
return cmd
}

Expand Down

0 comments on commit 5cf098b

Please sign in to comment.