Snyk offers security scanning to test your Elixir projects for vulnerabilities using the CLI.
Snyk builds a dependency tree for your project by analyzing your manifest and lock files.
After Snyk builds the tree, Snyk uses our vulnerability database to find vulnerabilities in the packages anywhere in the dependency tree.
Mix is a build tool that provides tasks for creating, compiling, and testing Elixir projects, managing its dependencies, and more.
Mix manages dependencies by integrating with the Hex package manager.
To build the dependency tree, Snyk analyzes your
mix.lock files. The
mix.lock file must be present and in sync with the
Projects in the Snyk UI are named according to the
app keyword from the
project/0 function exported by
Mix.Project in the main
To override the name, use the
--project-name CLI parameter.
If you test a Mix Umbrella project, Snyk detects that this is an umbrella project and includes all the child apps automatically.
Along with the main
mix.exs, each app
mix.exs appears as a separate project in the Snyk UI, named according to the path to the app.
Snyk fully supports all
:hex packages listed in the Mix project, including all their transitive dependencies and any vulnerabilities.
Hex support includes both Elixir and Erlang packages.
Snyk also has limited support for
:github dependencies, but not their transitive dependencies or vulnerabilities.
:pathdependencies appear in the dependency tree by name
:githubdependencies appear in the dependency tree by repository URL and version (either
:ref, as defined in the