Analyze Mode
Overview
Analyze Mode - Usage
npx mobbdev@latest analyze --helpnpx mobbdev@latest analyze --help
cli.mjs analyze
Provide a vulnerability report and relevant code repository, get automated fixes right away.
Options:
-f, --scan-file Select the vulnerability report to analyze (Checkmarx, Snyk, Fortify,
CodeQL, Sonarqube, Semgrep, Datadog) [string]
-r, --repo Github / GitLab / Azure DevOps repository URL [string] [required]
-p, --src-path Path to the repository folder with the source code; alternatively, you
can specify the Fortify FPR file to extract source code out of it
[string]
--ref Reference of the repository (branch, tag, commit) [string]
--mobb-project-name Mobb project name [string] [default: "My first project"]
-y, --yes Skip prompts and use default values [boolean]
--ci Run in CI mode, prompts and browser will not be opened
[boolean] [default: false]
--org, --organization-id Organization id [string]
--api-key Mobb authentication api-key [string]
--auto-pr Enable automatic pull requests for new fixes[boolean] [default: false]
--create-one-pr Create a single unified PR for all fixes (requires --auto-pr)
[boolean] [default: false]
--commit-directly Commit directly to the scanned branch instead of creating a pull
request [boolean] [default: false]
--pull-request, --pr, --pr-number, --pr-id Number of the pull request [number]
--help Show help [boolean]
Example
Automatic PR
Scan (with Opengrep) and Fix Mode
How to Use Scan and Fix Mode
Example
Benefits of Scan and Fix Mode
Last updated