The video installs Trivy 0.76.1 on Ubuntu 24.04 and runs a first filesystem scan against a demo project, all in about two minutes of runtime.
Every command and claim here is cross-checked against the official Trivy docs linked throughout, and steps that were not re-executed for this guide are marked untested.
The video mentions narration-tool and affiliate links in its description, and those links are not reproduced here.
Prerequisites
64-bit Ubuntu, with the video demonstrating on Ubuntu 24.04.
curl and tar available for the tarball install path.
A project folder containing lock files to scan, since Trivy finds language vulnerabilities through lock files such as package-lock.json and Gemfile.lock.
Outbound network access, because the first scan downloads a vulnerability database before it reports anything.
Install Trivy without root
Trivy 0.76.1 release card with the official GitHub release assets and rootless-install notes (Still from the walkthrough video.)
The video demonstrates a rootless install from the official GitHub release assets, and this path is untested beyond the transcript and docs.
Download the Linux 64-bit Trivy 0.76.1 archive from the Trivy releases page, which matches the version referenced in the official installation docs at the time of writing.
Unpack the archive with tar -xzf ./trivy.tar.gz, following the official GitHub Release method.
Make the binary executable with chmod +x ./trivy, also per the official docs.
Move the binary into a folder on your own PATH, which the video does with a local bin folder, for example mv ./trivy ~/.local/bin/trivy.
Confirm the install with trivy --version and expect to see 0.76.1, exactly as the video demonstrates.
Install with apt instead
The official installation docs publish a Debian and Ubuntu repository method, and unlike the tarball path it needs root.
Install the downloader prerequisites with sudo apt-get install wget gnupg.
Add the repository key with wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null.
Add the repository with the documented deb line, writing the signed-by entry to the trivy list file (see the official installation docs for the exact one-line command).
Refresh and install with sudo apt-get update followed by sudo apt-get install trivy.
This apt path is untested in this guide, so compare each step against the official docs before running it.
Run your first filesystem scan
Point Trivy at any project folder with trivy fs /path/to/project, which is the documented filesystem scan form.
The first run downloads the vulnerability database first, and the video notes the download is about 130 MB, so give it a minute.
Expect a per-lock-file table with a totals line and columns for library, vulnerability ID, severity, installed version, fixed version, and title, matching the documented filesystem scan output.
In the video demo, a project with two pinned Python packages returns seven high-severity findings, all in one outdated urllib3.
Vulnerability and secret scanning are on by default for this target, per the official docs.
Recreated terminal showing pinned urllib3 1.25.9 and requests 2.25.1 with the vulnerability database downloading before the first scan (Still from the walkthrough video.)
Focus on what matters, then fix it
Filter out the noise with trivy fs --severity HIGH,CRITICAL /path/to/project, which combines the documented filesystem target with the documented severity filter.
Treat the fixed-version column as your upgrade target and bump the pins it names.
Scan again with the same command and look for zero findings, which is how the video proves the upgrade worked.
Gate a pipeline instead of just reporting by adding the documented CI flag, for example trivy fs --exit-code 1 --severity HIGH,CRITICAL /path/to/project, which exits non-zero when findings remain.
The severity-filter and exit-code combinations are untested here, although each flag is individually documented for exactly this CI-gating purpose.
Recreated terminal showing upgraded pins and a clean rescan with zero high or critical findings (Still from the walkthrough video.)
Scan a container image
The video notes that Trivy also scans container images but that image scans need Docker, so this whole section is untested.
The documented image-scan shape is trivy image --exit-code 1 --severity CRITICAL ruby:2.4.0, so substitute your own image name and severity set.
Mounting the container engine socket into the Trivy container is the documented approach when running Trivy itself from its official image.
Start with filesystem scans like the video does and add image scans once Docker is available.
Scan a code repository
Scan a local checkout with trivy repo ./, which is the documented repository-scan form from the repository target docs.
Scan a remote project with trivy repo https://github.com/aquasecurity/trivy-ci-test, which is the documented remote form and names the official Trivy test repository.
Repository scans target lock files rather than built artifacts such as JAR or binary files, per the official docs.
These repository commands are untested in this guide.
What Trivy does not do
Trivy reports known vulnerabilities but does not upgrade or patch anything itself, so the fix step is always yours.
Filesystem scans warn that the OS is not detected and OS packages are not checked, meaning bare project scans cover language packages rather than system packages.
Trivy does not support third-party or self-compiled packages and binaries, and only consumes advisories from its documented OS and language sources.
Misconfiguration and license scanners stay off unless requested, for example trivy fs --scanners misconfig /path/to/project or trivy fs --scanners license /path/to/project.
Trivy exits with code 0 even when findings exist unless you pass an explicit exit-code flag, so bare scans never fail a build on their own.
Next steps
Re-run the video flow on one of your own projects and compare its findings table against the fixed-version column.
Enable the opt-in scanners above on an infrastructure folder to see misconfigurations alongside vulnerabilities.
Wire the exit-code scan form into CI so vulnerable dependencies fail the build instead of failing you later.
Explore SBOM generation and Kubernetes cluster scanning in the official Trivy docs once first scans feel routine.