Rootfs
Rootfs scanning is for special use cases such as
- Host machine
- Root filesystem
- Unpacked filesystem
$ trivy rootfs /path/to/rootfs
Note
Rootfs scanning works differently from the Filesystem scanning.
You should use trivy fs
to scan your local projects in CI/CD.
See here for the differences.