GitLab offers both Dependency Scanning and Container Scanning to ensure coverage for all of these dependency types. To cover as much of your risk area as possible, we encourage you to use all of our security scanning tools:
- Dependency Scanning analyzes your project and tells you which software dependencies, including upstream dependencies, have been included in your project, and what known risks the dependencies contain.
- Container Scanning analyzes your containers and tells you about known risks in the operating system’s (OS) packages.
The following table summarizes which types of dependencies each scanning tool can detect:
|Feature||Dependency Scanning||Container Scanning|
|Identify the manifest, lock file, or static file that introduced the dependency|
|Dependencies in a lock file committed to your repository||1|
|Binaries built by Go||2 3|
|Dynamically-linked language-specific dependencies installed by the Operating System||3|
|Operating system dependencies|
|Language-specific dependencies installed on the operating system (not built by your project)|
- Lock file must be present in the image to be detected.
- Binary file must be present in the image to be detected.
- Only when using Trivy.