Container scanning#
Important
Container scanning is a business-tier feature. If you are a Codacy Pro customer interested in upgrading to gain access to this feature, talk to us.
Container Scanning is a technique to scan your container image's dependencies for known vulnerabilities. The Security and risk management > Container scanning page allows you to set up scans that run automatically every night, and surface actionable security findings as new vulnerabilities get discovered.
How our container image scanning Works#
The security tool analyzes your uploaded SBOM (Software Bill of Materials) files to find vulnerabilities in your container images. An SBOM of a container lists all the dependencies included in the image, which in turn allows the scanner to search for known vulnerabilities (CVEs).
High-level flow#
- Image SBOMs are received either via CI/CD integration or manual upload
- The image dependencies are scanned against Trivy's vulnerability databases
- Results appear in the UI after processing
Scan frequency#
- Proactive scans run automatically once per day
- Scans are executed every night (UTC) and the findings are updated automatically
No manual action is required to trigger scans after the initial setup.
Container scanning setup#
You can set up container scanning in one of two ways: by connecting your CI/CD pipeline or by manually uploading your image SBOM. Once configured, your image dependencies are scanned daily and results will appear in the Image card list.
CI/CD integration#
You must authenticate the Codacy CLI so your pipeline can securely send your image SBOM to Codacy.

In order to do that, you need to:
- Get the API token and set up the environment variable as shown in the UI;
- Install and run Codacy CLI in your pipeline to upload results.
When CI/CD is configured:
- Images pushed through your pipeline are automatically detected
- New tags are picked up as they're published
- Scans are scheduled automatically
This is the recommended setup for continuous coverage.
Manual upload#
You can also manually upload your container's Software Bill of Materials (SBOM) in CycloneDX or SPDX format.

To manually upload an image SBOM, you need to:
- Add the image name;
- Add the image tag;
- Upload your SBOM file (environment and repository fields are optional).
Note
You can use the Codacy CLI v2 to generate and upload your SBOM file to Codacy.
Image card list#
The Image card list provides an overview of all container images and the most recent tag pushed for each image.

For each image, you can see:
- Image name
- The most recent tag pushed for this image
- Options and entry point to check all image tags.
By clicking the card for a specific image, you will see a list of all tags for that image.

For the image tags, the list is sorted by latest uploaded, and the information includes:
- Tag used
- Environment (optional field)
- Last analysis: Date of the last scan for that tag
- Button to delete that image tag
Once a tag is scanned, you can click on the check findings link to access the findings page filtered by the respective results.
Important
Findings are tied to specific image tags. To resolve a finding, "bump" the tag to a newer version if a fixed version exists (if not, a downgrade or an alternative image may be required).
For dynamic tags such as latest, Codacy will automatically close findings that are no longer present in the current analysis. If you use static tags, you will need to delete tags that are no longer used, as there's a limit of 1000 tags per organization.
Deleting container image files from Codacy#

What happens when you delete an image:
- The image is permanently removed
- All associated image tags are deleted
- Scan history and results for that image are removed
Important
This action can't be undone. You can also delete a specific tag inside an image card.
No results yet#
If there is no last analysis date for an image tag, it means that the SBOM file was received but the scan hasn't been completed yet. The most likely scenario is that an analysis hasn't been executed yet.
Note
Remember that scans run nightly (UTC). If you just uploaded the SBOM file, but need results immediately, consider using our Codacy CLI v2 to run a local analysis to scan for any issues.
Was this page helpful?
Your feedback helps us improve the documentation.
255 characters left
Thanks for helping improve Codacy documentation.
For more detailed feedback, open an issue on GitHub.