Semgrep Configuration¶
Follow these steps to ingest Semgrep findings with Cartography.
Create a token with Agent (CI) and Web API scopes Creating a SEMGREP_APP_TOKEN.
Populate an environment variable with the secrets value of the token
Pass the environment variable name to the
--semgrep-app-token-env-var
CLI arg.
In order to ingest Semgrep dependencies with Cartography, additional steps are needed:
Determine which language ecosystems you’d like to ingest. See the full list of supported ecosystems in source code at cartography.intel.semgrep.dependencies.
Pass the list of ecosystems as a comma-separated string (e.g.
gomod,npm
) to the--semgrep-dependency-ecosystems
CLI arg.