QuestionQ36

VerifiedIntroduction to DevSecOps

Patricia Cornwell works as a DevSecOps engineer at an IT company that provides custom software solutions. She wants to use GitMiner to mine secret credentials — such as usernames and passwords, API credentials, and other sensitive data — from GitHub.

To begin the scan, she performed the following steps:

  • Cloned the repository to her local machine using: git clone http://github.com/UnkL4b/GitMiner
  • Navigated into the cloned directory using: $ cd GitMiner

Which of the following commands should Patricia use next to install the required dependencies?

Explanation

In pip, the -r flag is used to specify a requirements file so that all the listed dependencies get installed in one command, i.e., pip3 install -r requirement.txt. This is the standard and correct syntax for installing dependencies from a requirements file, which is the typical setup step after cloning a tool like GitMiner from GitHub. The -d, -q, and -m flags serve unrelated purposes (download, quiet mode, and module invocation respectively) and are not used for installing from a requirements file.

Learn more

Community Discussion

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