@@ -20,40 +20,35 @@ steps:
2020 command : |
2121 npm install --ignore-scripts
2222 - type : Command
23- name : " Install cyclonedx-node-npm package "
23+ name : " Install cyclonedx globally "
2424 command : |
25- npm install --ignore-scripts -g --save-dev @cyclonedx/cyclonedx-npm
25+ npm install --ignore-scripts -g @cyclonedx/cyclonedx-npm
2626 - type : Command
27- name : " Run cyclonedx- node-npm package "
27+ name : " Run cyclonedx for node-cli & unit-testing packages "
2828 command : |
2929 # For more details, visit https://github.com/CycloneDX/cyclonedx-node-npm/blob/main/README.md
30- npx @cyclonedx/cyclonedx-npm --omit dev --output-format JSON --output-file artifactSBOM1 .json --spec-version 1.4
30+ npx @cyclonedx/cyclonedx-npm --omit dev --output-format JSON --output-file artifactSBOM_node-cli_unit-testing .json --spec-version 1.4
3131 - type : Command
3232 name : " Install vscode extension package"
3333 command : |
3434 cd packages/vscode-extension && npm install --ignore-scripts
3535 - type : Command
36- name : " Install cyclonedx-node-npm package"
37- command : |
38- npm install --ignore-scripts -g --save-dev @cyclonedx/cyclonedx-npm
39- - type : Command
40- name : " Run cyclonedx-node-npm package"
36+ name : " Run cyclonedx for vscode-extension package"
4137 command : |
4238 # For more details, visit https://github.com/CycloneDX/cyclonedx-node-npm/blob/main/README.md
43- cd packages/vscode-extension && npx @cyclonedx/cyclonedx-npm --omit dev --output-format JSON --output-file artifactSBOM2 .json --spec-version 1.4
39+ cd packages/vscode-extension && npx @cyclonedx/cyclonedx-npm --omit dev --output-format JSON --output-file artifactSBOM_vscode-extension .json --spec-version 1.4
4440 - type : Command
45- name : " Download CycloneDx-cli executable and install dependencies"
41+ name : " Download CycloneDx-linux- cli executable and install dependencies"
4642 command : |
4743 wget https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.24.2/cyclonedx-linux-x64
4844 yum install -y libicu
4945 - type : Command
50- name : " Merge multiple SBOMs using CycloneDX-cli"
46+ name : " Merge multiple SBOMs using CycloneDX-linux- cli"
5147 command : |
5248 # For more details, visit https://github.com/CycloneDX/cyclonedx-cli/blob/main/README.md
5349 chmod +x cyclonedx-linux-x64
54- ./cyclonedx-linux-x64 merge --input-files artifactSBOM1 .json packages/vscode-extension/artifactSBOM2 .json --output-file artifactSBOM.json
50+ ./cyclonedx-linux-x64 merge --input-files artifactSBOM_node-cli_unit-testing .json packages/vscode-extension/artifactSBOM_vscode-extension .json --output-file artifactSBOM.json
5551outputArtifacts :
5652 - name : artifactSBOM
5753 type : BINARY
58- location : ${OCI_PRIMARY_SOURCE_DIR}/artifactSBOM.json
59-
54+ location : ${OCI_PRIMARY_SOURCE_DIR}/artifactSBOM.json
0 commit comments