#5325·syft

File Digests Remain at Zero, No Hashes Available Despite .syft.yaml Settings Should Support.

Author: gwendoylnEyrieCreated Sep 24, 2026Updated Sep 28, 2026
Labelsbugwindows

What happened:

Edited config file for pretty output as well as changed: File: Metadata: Selection: (FROM) 'owned by package' (TO) 'all' digests: - 'sha256' - (ADDED) 'sha1'

Ran command: C:\SBOMREPO>syft dir:. -o cyclonedx-json > cleanSBOM.json

Result: ✔ Indexed file system . ✔ Cataloged contents cdb4ee2aea69cc6a83331bbe96dc2caa9a299d21329efb0336fc02a82e1839a8 ├── ✔ Packages [53 packages] ├── ✔ File metadata [31,111 locations] ├── ✔ Executables [139 executables] └── ✔ File digests [0 files] [0000] WARN no explicit name and version provided for directory sou A newer version of syft is available for download: 1.52.0 (installed version is 1.51.0)

What you expected to happen: File digests to be populated, and displayed with appropriate cyclonedx format hash codes.

Steps to reproduce the issue:

  • Edit syft.yaml to above specifications.
  • Navigate to directory with repository.
  • run syft config --load
  • run syft dir:. -o cyclonedx-json > filename.json
  • observe an empty file digests section

Anything else we need to know?:

I am uncertain if running on a dir requires extra steps. I find that most information on syft relates to linux systems and creating from container images, rather than Windows and directories of repositories. I am early in my journey with Secure programming and SBOMs, and would not be surprised if this is a humble mistake of the user rather than the error of a program. If any information is needed, I will be glued to this thread as I have exhausted all other options I can think to solve my issue.

Environment:

  • Output of syft version: SYFT Version 1.51.0
  • OS (e.g: cat /etc/os-release or similar): Windows 11 Command Terminal