Skip to content

Fix path and content in log statements about Static Reachability

What does this MR do and why?

In this MR we fix log statements printed during the SBOM SR enrichment process. We are fixing:

  • Printing the whole lock file path instead of just the base dir
  • Updated the log statement to identify which language enricher is used since JS/TS enricher might run on the same lock file.

Related issues

Fix SR log statements about which file is being... (gitlab-org/gitlab#566183 - closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
...
[INFO] [...] ▶ Enriching SBOMs
[INFO] [...] ▶ Enriched SBOM report at .. From 316 components, 237 were in use
[INFO] [...] ▶ Enriched SBOM report at .. From 316 components, 22 were in use
[INFO] [...] ▶ generated SBOM /Users/nickilieskou/projects/temp/typedoc-fork/gl-sbom-npm-pnpm.cdx.json for lock file pnpm-lock.yaml
...
...
[INFO] [...] ▶ Enriching SBOMs
[INFO] [...] ▶ javascript SR enricher: Enriched SBOM report for pnpm-lock.yaml. From 316 components, 237 were in use
[INFO] [...] ▶ typescript SR enricher: Enriched SBOM report for pnpm-lock.yaml. From 316 components, 22 were in use
[INFO] [...] ▶ generated SBOM /Users/nickilieskou/projects/temp/typedoc-fork/gl-sbom-npm-pnpm.cdx.json for lock file pnpm-lock.yaml

Edited by Nick Ilieskou

Merge request reports

Loading