scan command to perform scans against a repository.
Usage
Run the following command to perform a full scan including reachability analysis for the open source packages you build in a repository.--languages flag.
<languages-list> as a comma-separated list using the supported languages: c,c#,cpp,go,gosu,java,javascript,kotlin,php,python,ruby,rust,scala,swift,typescript.
To scan for leaked secrets and monitor all results in the checked out version of your repository, run the following command.
- If endorctl scans the repository’s Git log history for the first time, it performs a full scan.
- endorctl also performs a full rescan if you change any of the rules in the namespace.
- In all other cases, endorctl runs an incremental scan based on the last scan time.
.github/workflows and discover Actions used in your pipelines, run the following command.
--path and specify a name for your project using --project-name.
To scan and discover AI/LLM models in your repository, run the following command.
--dry-run with --secrets, --sast, or --ai-sast flags. When you use --dry-run with --ai-sast, you must also set --diff-scope to scope the scan to changed files. Do not use --dry-run with container scanning.
Endor Labs does not store dry run results. endorctl keeps the results in memory and discards them when the scan ends, so they don’t appear in the Endor Labs user interface or the API. Dry run scans also don’t send notifications or export data to data exporters.
To keep the results of a dry run, write them to a local file. Set --output-type to json or yaml and redirect the output, or set --sarif-file. Use a separate file for each run so you can compare the results after all the runs complete.
--dry-run.
Options
The commandendorctl scan uses the following flags and environment variables.