|
2 | 2 |
|
3 | 3 | `Trivy` automatically detects the following files in the container and scans vulnerabilities in the application dependencies. |
4 | 4 |
|
5 | | -| Language | File | Dev dependencies | |
6 | | -| ---------| ------------------------------------------------| -----------------| |
7 | | -| Ruby | Gemfile.lock | included | |
8 | | -| Python | Pipfile.lock | excluded | |
9 | | -| | poetry.lock | included | |
10 | | -| PHP | composer.lock | excluded | |
11 | | -| Node.js | package-lock.json | excluded | |
12 | | -| | yarn.lock | included | |
13 | | -| .NET | packages.lock.json | included | |
14 | | -| Java | JAR/WAR/EAR (`*.jar`, `*.war`, and `*.ear`)[^1] | included | |
15 | | -| Go | Binaries built by Go[^2] | excluded | |
16 | | -| | go.sum | included | |
| 5 | +| Language | File | Image[^6] | Filesystem[^7] | Repository[^8] |Dev dependencies | |
| 6 | +|---------|-------------------------|:---------:|:--------------:|:---------------:|-----------------| |
| 7 | +| Ruby | Gemfile.lock | ✅ | ✅ | ✅ | included | |
| 8 | +| Python | Pipfile.lock | - | ✅ | ✅ |excluded | |
| 9 | +| | poetry.lock | - | ✅ | ✅ | included | |
| 10 | +| | requirements.txt | - | ✅ | ✅ | included | |
| 11 | +| | egg package[^1] | ✅ | ✅ | - | excluded | |
| 12 | +| | wheel package[^2] | ✅ | ✅ | - | excluded | |
| 13 | +| PHP | composer.lock | ✅ | ✅ | ✅ | excluded | |
| 14 | +| Node.js | package-lock.json | ✅ | ✅ | ✅ | excluded | |
| 15 | +| | yarn.lock | ✅ | ✅ | ✅ | ncluded | |
| 16 | +| .NET | packages.lock.json | ✅ | ✅ | ✅ | included | |
| 17 | +| Java | JAR/WAR/EAR[^3][^4] | ✅ | ✅ | ✅ | included | |
| 18 | +| Go | Binaries built by Go[^5] | ✅ | ✅ | - | excluded | |
| 19 | +| | go.sum | - | ✅ | ✅ | included | |
17 | 20 |
|
18 | 21 |
|
19 | 22 | The path of these files does not matter. |
20 | 23 |
|
21 | 24 | Example: [Dockerfile](https://github.com/aquasecurity/trivy-ci-test/blob/main/Dockerfile) |
22 | 25 |
|
23 | | -[^1]: It requires the Internet access |
24 | | -[^2]: UPX-compressed binaries don't work |
| 26 | +[^1]: `*.egg-info`, `*.egg-info/PKG-INFO`, `*.egg` and `EGG-INFO/PKG-INFO` |
| 27 | +[^2]: `.dist-info/META-DATA` |
| 28 | +[^3]: `*.jar`, `*.war`, and `*.ear` |
| 29 | +[^4]: It requires the Internet access |
| 30 | +[^5]: UPX-compressed binaries don't work |
| 31 | +[^6]: ✅ means "enabled" and `-` means "disabled" in the image scanning |
| 32 | +[^7]: ✅ means "enabled" and `-` means "disabled" in the filesystem scanning |
| 33 | +[^8]: ✅ means "enabled" and `-` means "disabled" in the git repository scanning |
0 commit comments