{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}]},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D18","name":"Solution Shape","shortDescription":{"text":"Solution Shape"},"helpUri":"https://codehealth.canine.dev/dimensions/D18"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}]},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29"},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31"},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}]}]}},"results":[{"ruleId":"D2","level":"warning","message":{"text":"AccountController.Login (cognitive 26): AccountController.Login has cognitive complexity 26 (threshold 15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Identity/CoolStore.IdentityServer/Quickstart/Account/AccountController.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6134224daa762eb04109cf9e946b3a277df231bf9d02842cff54ac8dc906078d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): src/ProductCatalog/CoolStore.ProductCatalogApi/Program.cs:32-82 | src/Inventory/CoolStore.InventoryApi/Program.cs:31-81"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ProductCatalog/CoolStore.ProductCatalogApi/Program.cs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06678a5637af17fb940ebfbfe05d950c1dab9c86cd2ce23e2058785dfd7b860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/GraphApi/CoolStore.GraphApi/Program.cs:20-27 | src/Inventory/CoolStore.InventoryApi/Program.cs:28-44"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/GraphApi/CoolStore.GraphApi/Program.cs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74dba3b1fd156b903d1ca56dc26e5abc506cabd4c51434b44c7e911508ad702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/ProductCatalog/CoolStore.ProductCatalogApi/Application/CreateProduct/CreateProductValidator.cs:9-23 | src/ProductCatalog/CoolStore.ProductCatalogApi/Application/UpdateProduct/UpdateProductValidator.cs:14-28"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ProductCatalog/CoolStore.ProductCatalogApi/Application/CreateProduct/CreateProductValidator.cs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"52482d625058e73da8b5794b8ca2ae0c499c963e7ac68d1ba95312f030c4474c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/WebUI/CoolStore.WebUI.Host/GraphQL/Generated/CreateProductInputSerializer.cs:82-96 | src/WebUI/CoolStore.WebUI.Host/GraphQL/Generated/UpdateProductInputSerializer.cs:87-101"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/WebUI/CoolStore.WebUI.Host/GraphQL/Generated/CreateProductInputSerializer.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"45af3c4a5b514190be75069af96852ed4405c7980b241682bdee63b191232f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/BuildingBlocks/N8T.Infrastructure/Tye/Extensions.cs:22-34 | src/BuildingBlocks/N8T.Infrastructure/Tye/Extensions.cs:39-51"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BuildingBlocks/N8T.Infrastructure/Tye/Extensions.cs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"711c2729356ac331498c3c4bc1b5fb3969cd7549556b21c6f63700e6be9c3dfb"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: CoolStore.WebUI: CoolStore.WebUI: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and heavily depended-on, so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"122581ada0b267701eb66d42acd217df3d7ee2b69ced69e016217bd7b727cf23"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: N8T.Infrastructure: N8T.Infrastructure: abstractness 0.09, instability 0.20, distance 0.71 \u2014 zone of pain \u2014 concrete and heavily depended-on, so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"15d33edc002c6b8a208bce287173bd243f3c98d8259ceb2f9e2126bc303b1dd8"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 the solution has no test code. Untested code is the largest single risk to changing it safely."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D9","level":"note","message":{"text":"No tests found: No test projects found in the repository."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D16","level":"note","message":{"text":"Small-team knowledge concentration: 0 file(s) are concentrated to one author \u2014 the ambient state with 2 active author(s), not 0 separate risks. The signal becomes meaningful as ownership spreads; no per-file action implied now."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8aa75b6daa18f1b578387fa04036c50b3163d47f957c8f5601bf083ed4489b0c"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: /* hack: ssl termination */ \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BuildingBlocks/N8T.Infrastructure/Tye/Extensions.cs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a9b7aad0194e52668c8e8db19c788a53ea842400fafb4759c804ae6ecf73fb"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Identity/CoolStore.IdentityServer/Quickstart/Account/ExternalController.cs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf1def1abdf3fb8b02d8a07bd13f519fe41566b512ceb8cf05c3c6a1005020f"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Identity/CoolStore.IdentityServer/Quickstart/Account/ExternalController.cs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf1def1abdf3fb8b02d8a07bd13f519fe41566b512ceb8cf05c3c6a1005020f"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Identity/CoolStore.IdentityServer/Startup.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2034cf09998e7011c07aaf6ac172d7df99d1ff50087007bb34f354a2401814"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: will propagate headers to grpc headers \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ProductCatalog/CoolStore.ProductCatalogApi/Infrastructure/Apis/Gateways/InventoryGateway.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b765c4d26bc3529a2a42c1b95f18b3dcf62c7cb0834e9d6b2936749f30449967"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found at common paths; consider documenting architectural decisions in Docs/ADL/ or similar."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D21","level":"note","message":{"text":"Inconsistent naming for GraphQL client methods. Some methods use \u0027Get...Async\u0027 while others might use different patterns or lack the \u0027Async\u0027 suffix in interface definitions.: Ensure all GraphQL client methods follow the \u0027Get...Async\u0027 pattern consistently across both the client and its interface. (symbols: CoolStore.WebUI.Host.GraphQLClient.GetStoresAsync, CoolStore.WebUI.Host.GraphQLClient.GetCategoriesAsync, CoolStore.WebUI.Host.GraphQLClient.GetProductsAsync, CoolStore.WebUI.Host.IGraphQLClient.GetStoresAsync, CoolStore.WebUI.Host.IGraphQLClient.GetProductsAsync)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e4b1c81d82aeea7b23c078e548e92e484725e3effb40bd7268d5962dd0056656"}},{"ruleId":"D21","level":"note","message":{"text":"Inconsistent naming for DTOs. Multiple versions of CatalogProductDto (e.g., CatalogProductDto, CatalogProductDto1, CatalogProductDto2) exist, suggesting a lack of standardization in DTO naming.: Use a single, consistent naming convention for DTOs, such as \u0027CatalogProductDto\u0027 without numeric suffixes, and ensure all related DTOs follow the same pattern. (symbols: CoolStore.WebUI.Host.CatalogProductDto.Id, CoolStore.WebUI.Host.CatalogProductDto2.Id, CoolStore.WebUI.Host.CatalogProductDto1.Name, CoolStore.WebUI.Host.CatalogProductDto.Description, CoolStore.WebUI.Host.CatalogProductDto.ImageUrl, CoolStore.WebUI.Host.CatalogProductDto.Category, CoolStore.WebUI.Host.CatalogProductDto2.Id, CoolStore.WebUI.Host.CatalogProductDto1.Name)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2a57808e83732d35907436b82597288cb4beddf6239f9b1248a8e9cf11331f79"}},{"ruleId":"D23","level":"note","message":{"text":"Bounded contexts not declared: At 7890 LoC spread over 8 projects the codebase is large and multi-module, so explicit bounded contexts are needed. Declare architecture.contexts (\u22652) in config to assess cross-boundary type coupling."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1c7e276c9c682731f01819ed5378b90ca320cde1b583c90920172911598362b3"}},{"ruleId":"D28","level":"error","message":{"text":"Secret: generic-api-key: matched rule \u0027generic-api-key\u0027"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Identity/CoolStore.IdentityServer/tempkey.rsa"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"923612f431d814bd3041f125bfe7b4cb39201348142f3398bbf7fcbb71a5d0f9"}},{"ruleId":"D28","level":"note","message":{"text":"Rotate the exposed credentials \u2014 git history can\u0027t be un-committed: Some of these secrets are in git HISTORY: deleting the file does not remove them (the commit persists on every clone, fork and backup). The remediation is to ROTATE each historically-exposed credential and treat it as compromised \u2014 not to delete the file. Rewriting history is disruptive and unreliable across existing forks. (Working-tree-only secrets \u2014 no commit \u2014 can instead be removed from the file and moved to a secret store.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D31","level":"error","message":{"text":"High IaC: DS-0002: Image user should not be \u0027root\u0027"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".devcontainer/Dockerfile"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b40da5c76d9d185d53279aad925a50e82e4dd82135a8f3f0f1ee6249218dbc"}},{"ruleId":"D31","level":"note","message":{"text":"Low IaC: DS-0014: RUN using \u0027wget\u0027 and \u0027curl\u0027"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".devcontainer/Dockerfile"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1e1916692d4d5f458efae18df368376314f217f352881cf1d4fa6cc083eb6d"}},{"ruleId":"D31","level":"note","message":{"text":"Low IaC: DS-0026: No HEALTHCHECK defined"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".devcontainer/Dockerfile"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33478d526b4b75f2d1effac71d00f20d80ae6679f585c0aa406adc1aaa29f92"}},{"ruleId":"D31","level":"note","message":{"text":"Low IaC: KSV-0110: Workloads in the default namespace"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"helm/zipkin/templates/deployment.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9a64923948cf248b8bacbfd10b10db7c50199e86aeb595ddc4e3b7229dc946"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 1 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (1 orphaned of 1 analysed files in total)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D36","level":"note","message":{"text":"No build provenance: No SLSA provenance generation or build attestation found in CI (e.g. slsa-github-generator, actions/attest-build-provenance)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"No artifact signing: No artifact signing found in CI (e.g. cosign / sigstore / gitsign)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"note","message":{"text":"No SBOM: No SBOM generation or committed SBOM found (e.g. syft / anchore/sbom-action / *.spdx.json / *.cdx.json)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"Unpinned build actions: CI references GitHub Actions by a floating ref (@main / @tag) rather than a pinned commit SHA, weakening build integrity."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","name":"Reliance on Insufficiently Trustworthy Component"},{"id":"CWE-798","name":"Use of Hard-coded Credentials"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":0,"secretScannerRunsExcluded":0}}}]}