[CS For Registry] Add registry event info to container scanning report
Description
- Add new information to the container scanning report as a registry event for components identified by registry event triggers if the ENV variable introduced in [CS For Registry] Add env variable to identify ... (#443621 - closed) is set.
- The new container scanning report should be a valid schema.
User Impact
After the implementation, the newly generated CS file should have an identifier pointing to the instigator of the pipeline job, i.e. registry_event.
Non-functional requirements
-
Update documentation to include a new field. -
Testing: Add unit tests/specs.
Implementation plan
- Add
scan.type
tocontainer_scanning_for_registry
ingl-container-scanning-report.json
report if env variableREGISTRY_TRIGGERED
is set. - Add test cases.
Verification steps
- Set newly introduced env variable.
- Run the CS job.
- Verify that the CS report has newly introduced instigator identifier.
Edited by Aditya Tiwari