Add sbom:cyclonedx report type
What does this MR do and why?
This MR adds an SBOM report type to artifacts:reports
. In the ci yaml config the artifacts:reports:cyclonedx
indicates the sbom report type that will be ingested. Currently only cyclonedx
is supported.
artifacts:
reports:
cyclonedx:
- artifact1
- artifact2
The idea here is that if we have other sbom report types we can declare them as separate keys under the report
:
artifacts:
reports:
cyclonedx:
- artifact1
- artifact2
spdx:
- artifact3
- artifact4
Related issue: #360766 (closed)
Migrations
$ scripts/db_tasks db:migrate
main: == 20220707190546 AddPlanLimitsMaxSizeCyclonedxReportColumn: migrating ========
main: -- add_column(:plan_limits, :ci_max_artifact_size_cyclonedx, :integer, {:null=>false, :default=>0})
main: -> 0.0136s
main: == 20220707190546 AddPlanLimitsMaxSizeCyclonedxReportColumn: migrated (0.0161s)
$ scripts/db_tasks db:migrate:down VERSION=20220707190546
main: == 20220707190546 AddPlanLimitsMaxSizeCyclonedxReportColumn: reverting ========
main: -- remove_column(:plan_limits, :ci_max_artifact_size_cyclonedx, :integer, {:null=>false, :default=>0})
main: -> 0.0046s
main: == 20220707190546 AddPlanLimitsMaxSizeCyclonedxReportColumn: reverted (0.0104s)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #360766 (closed)
Edited by Igor Frenkel