Fix manifest file hierarchy search order
Checklist
-
documentation is changed or added in./docs
-
unit tests updated to test changes
Description
Context
While working on the experimental RPM collector plugin, it was observed that repositories in parent manifest weren't being consistently propagated to child manifest(s) as expected.
Intent
- Add
repositories
field validator toManifest
model - Move generation of component search sequence data from
sboms
field validator into newrepositories
validator- Reorder fields in
ManifestFile
model (the superclass ofManifest
) so that thesboms
field is validated before therepositories
field - This ensures that the
sboms
data is already available during validation of therepositories
field
- Reorder fields in
- Refactor to extract component search sequence logic into new
_add_repository_search_sequence
method