rorix scan
Scan .NET and Node.js project dependencies for known vulnerabilities, license compliance issues, and supply-chain risks.
CI gate: use public
Rorix.Cli 0.1.3or later for required checks. Versions 0.1.2 and earlier can report success after a blocking finding. Use an API key with API read scope.
Usage
rorix scan [path] [options]If no path is provided, Rorix scans the current directory.
CLI 0.1.4 discovers NuGet packages.lock.json files when scanning a directory, project, or solution. Generate a lockfile to include resolved transitive dependencies. CLI 0.1.3 requires each lockfile to be scanned explicitly, for example rorix scan ./path/to/packages.lock.json --exit-code. Keep the lockfile current with dotnet restore --locked-mode. The scan API accepts at most 200 packages per file; larger graphs fail rather than receiving a complete result.
Options
| Option | Default | Description |
| --- | --- | --- |
| --format | table | Output format: table, json, or sarif |
| --exit-code | false | Exit with code 1 if vulnerabilities are found |
| --policy | — | Path to a .rorix.yml policy file |
Examples
Scan the current directory
rorix scanScan a specific project
rorix scan ./src/MyApp/MyApp.csprojFor npm, point to a package-lock.json or its containing directory:
rorix scan ./package-lock.jsonOutput as JSON
rorix scan --format jsonFail in CI when vulnerabilities are found
rorix scan --exit-codeEnforce a policy file
rorix scan --policy .rorix.yml --exit-codeGenerate SARIF output for GitHub Security tab
rorix scan --format sarif > results.sarifExit Codes
These exit codes apply to public Rorix.Cli 0.1.3 and later.
| Code | Meaning |
| --- | --- |
| 0 | Scan completed and no requested gate failed |
| 1 | A vulnerability or policy gate failed, or a scan/authentication error occurred |
| 2 | No supported dependency manifest was found |