QuestionQ35

VerifiedIntroduction to DevSecOps

Matt LeBlanc works as a DevSecOps engineer at an IT company that builds software products and web applications for IoT devices. His team leader has instructed him to use the GitRob tool to find sensitive data in the organization's public GitHub repository.

To install GitRob, Matt has made sure that:

  • He has a properly configured Go >= 1.8 environment
  • $GOPATH/bin is included in his $PATH

The GitHub repository URL from which he needs to install the tool is:

https://github.com/michenriksen/gitrob

Which of the following commands should Matt use to install GitRob?

Explanation

GitRob is a Go-based tool, and its official installation instructions specify using the go get command with the full import path of the repository. Running $ go get github.com/michenriksen/gitrob fetches the source code, compiles it, and places the resulting binary in $GOPATH/bin (which must be in the user's PATH), making the gitrob command available. The other options use invalid syntax — 'go git' is not a recognized Go subcommand, and inserting an extra 'gitrob' argument before the import path is not valid for the go get command.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!