diff --git a/.github/workflows/tech_radar.yml b/.github/workflows/tech_radar.yml index da1ec2a..0db0d6d 100644 --- a/.github/workflows/tech_radar.yml +++ b/.github/workflows/tech_radar.yml @@ -45,7 +45,7 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ /repos/SRGSSR/pillarbox-android/dependency-graph/sbom \ - --jq '[ .sbom.packages[] | { name: .name, version: .versionInfo } ]' \ + --jq '.sbom.packages | reduce .[] as { $name, $versionInfo } ( {}; .[ $name ] = $versionInfo )' \ | gomplate -d dependencies=stdin:///in.json -f techRadar/used_dependencies.tmpl -o public/techRadar/used_dependencies.md - name: Commit the list of changes diff --git a/techRadar/used_dependencies.tmpl b/techRadar/used_dependencies.tmpl index 9bfc413..b0e3d93 100644 --- a/techRadar/used_dependencies.tmpl +++ b/techRadar/used_dependencies.tmpl @@ -1,5 +1,5 @@ # Used dependencies -{{ range $dependency := (ds "dependencies") -}} -- {{ $dependency.name }} v{{ $dependency.version}} +{{ range $dependency, $version := (ds "dependencies") -}} +- {{ $dependency }} v{{ $version}} {{ end -}}