Verified Solution

[gitlab-org/gitlab] SBOMScanCacheEvent has incorrect JSON tag causing schema validation failure

Sponsored Content
### ROOT CAUSE The `SBOMScanCacheEvent` struct in `composition_analysis/ds/ds.go` has an incorrect JSON tag for the `InputFilePath` field. The field is currently tagged with `json:"value"`, but the schema validation expects it to be `json:"input_file_path"`. This mismatch causes the schema validation to fail when the event is included in the observability data. ### CODE FIX Change the JSON tag for the `InputFilePath` field from `json:"value"` to `json:"input_file_path"` in the `SBOMScanCacheEvent` struct. ```go type SBOMScanCacheEvent struct { Event string `json:"event"` Property string `json:"property"` Label string `json:"label"` InputFilePath string `json:"input_file_path"` // ✅ CORRECT } ``` This change ensures the field matches the expected schema during validation.
Deploy on DigitalOcean ($200 Credit)

Related Fixes

[gitlab-org/gitlab] [FF] `group_scim_async_member_removal` --
[microsoft/vscode] Tab doesnt working
[gitlab-org/gitlab] Rollout: expanded_external_authorization_permissions feature flag