Skip to content
Snippets Groups Projects
Commit 25ee7634 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix(sbom): add CycloneDX report

parent 96321a18
No related branches found
No related tags found
No related merge requests found
......@@ -544,17 +544,20 @@ ng-sbom:
- mkdir -p -m 777 reports
- npx -y @cyclonedx/cyclonedx-npm${NG_SBOM_VERSION:+@$NG_SBOM_VERSION} --output-format JSON --output-file reports/ng-sbom.cyclonedx.json $NG_SBOM_OPTS
- chmod a+r reports/ng-sbom.cyclonedx.json
rules:
# exclude if disabled
- if: '$NG_SBOM_DISABLED == "true"'
when: never
- !reference [.test-policy, rules]
artifacts:
name: "SBOM for Angular from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
when: always
expire_in: 1 week
paths:
- $NG_WORKSPACE_DIR/reports/ng-sbom.cyclonedx.json
reports:
cyclonedx:
- $NG_WORKSPACE_DIR/reports/ng-sbom.cyclonedx.json
rules:
# exclude if disabled
- if: '$NG_SBOM_DISABLED == "true"'
when: never
- !reference [.test-policy, rules]
###############################################################################################
# publish stage: #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment