Skip to content

Commit

Permalink
Update sbom.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vberegov authored Sep 27, 2024
1 parent 16d5005 commit cf231b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
run: |
which jq
jq --version
sudo apt-get update jq -y
jq --version
- run: |
mv spdx*.spdx.json sbom.json
cat sbom.json| jq -r '.packages[]? | {"sbom":{copyrightText:.copyrightText,packagename:.name,versionInfo:.versionInfo,licenseDeclared:.licenseDeclared,downloadLocation:.downloadLocation,licenseConcluded:.licenseConcluded,SPDXID:.SPDXID,referenceLocator:.externalRefs[].referenceLocator,referenceCategory:.externalRefs[].referenceCategory,referenceType:.externalRefs[].referenceType}}' | while read -r repo; do echo "$repo"; done | jq -r tostring | jq -s '.' > sbom_output.json
Expand Down

0 comments on commit cf231b5

Please sign in to comment.