Skip to content

Commit 8930809

Browse files
committed
- generate-sbom.yml: add jq formatting step to make the file more accessible to humans
1 parent 6a9c342 commit 8930809

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/generate-sbom.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ jobs:
2727
working-directory: ./ios-sdk/
2828
- name: Build SBOM
2929
run: FETCH_LICENSE=true cdxgen -o ./bom.json -t swift
30+
- name: Format JSON
31+
shell: bash
32+
run: |
33+
beautifyJSON() {
34+
jq "$1" >"$1.tmp"
35+
mv "$1.tmp" "$1"
36+
}
37+
beautifyJSON "bom.json"
3038
- name: Commit files
3139
uses: stefanzweifel/git-auto-commit-action@v4
3240
with:

0 commit comments

Comments
 (0)