File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ project settings CircleCI. Then include the following in your `.circleci/config.
1616version : 2.1
1717setup : true
1818orbs :
19- build : mojaloop/build@1.0.71
19+ build : mojaloop/build@1.0.72
2020workflows :
2121 setup :
2222 jobs :
Original file line number Diff line number Diff line change 44 version : 2.1
55 setup : true
66 orbs :
7- build : mojaloop/build@1.0.71
7+ build : mojaloop/build@1.0.72
88 workflows :
99 setup :
1010 jobs :
Original file line number Diff line number Diff line change 4444 - run :
4545 name : Generate SBOM
4646 command : |
47- if compgen -G " sbom-*. csv" > /dev/null ; then
47+ if ls | grep -Eq '^ sbom-v[0-9]+\.[0-9]+\.[0-9]+\. csv$' ; then
4848 echo "Found SBOM file"
49- git rm sbom-*.csv 2>/dev/null || true
5049 rm -f sbom-*.csv
5150 # Generate new SBOM
5251 if [ -f yarn.lock ]; then
@@ -56,16 +55,9 @@ steps:
5655 echo "Generating SBOM using NPM"
5756 npx -y --package @mojaloop/ml-depcheck-utility@1.1.1 generate-sbom-npm
5857 fi
59- # Get the new sbom filename
60- sbom_file=$(ls sbom-*.csv 2>/dev/null || true)
61- # Commit and push if new SBOM file is generated
62- if [ -n "$sbom_file" ]; then
63- git add "$sbom_file"
64- git commit -m "chore(sbom): update $sbom_file [skip ci]" || echo "No changes to commit"
65- git push origin "${CIRCLE_BRANCH}" || echo "Git push failed"
66- else
67- echo "No new SBOM file found after generation"
68- fi
58+ git add .
59+ git commit -m "chore(sbom): update sbom [skip ci]" || echo "No changes to commit"
60+ git push origin "${CIRCLE_BRANCH}" || echo "Git push failed"
6961 else
7062 echo "No matching sbom-<version>.csv found. Skipping SBOM generation."
7163 fi
Original file line number Diff line number Diff line change 11version : 2.1
22orbs :
3- build : mojaloop/build@1.0.71
3+ build : mojaloop/build@1.0.72
44parameters :
55 git_tag :
66 type : string
You can’t perform that action at this time.
0 commit comments