Skip to content

Commit 6cc653b

Browse files
[WIP] Use @yclonedx/cyclonedx-npm via npx, not an action
The action was declared to be deprecated [1], [2] was mentioned as alternative. [1]: https://github.com/CycloneDX/gh-node-module-generatebom?tab=readme-ov-file [2]: https://www.npmjs.com/package/%40cyclonedx/cyclonedx-npm
1 parent 9449511 commit 6cc653b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/sbom.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ jobs:
5151
npm ci
5252
5353
- name: Generate SBOM (npm)
54-
# https://github.com/CycloneDX/gh-node-module-generatebom
55-
uses: CycloneDX/gh-node-module-generatebom@v1
56-
with:
57-
output: './bom.npm.xml'
54+
run: |
55+
npx @cyclonedx/cyclonedx-npm --output-format XML --output-file './bom.npm.xml'
5856
5957
# Pass BOMs to next Job
6058
# https://github.com/actions/upload-artifact

0 commit comments

Comments
 (0)