From 450b217f2e578c79eea60f3afe395c6bf98c334d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Wed, 28 Feb 2024 12:18:13 +0100 Subject: [PATCH] Refactor workflow file --- .github/workflows/tech_radar.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tech_radar.yml b/.github/workflows/tech_radar.yml index 66b6ce1..b06aeca 100644 --- a/.github/workflows/tech_radar.yml +++ b/.github/workflows/tech_radar.yml @@ -57,8 +57,7 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ /repos/$name/dependency-graph/sbom \ - --jq '[ .sbom.packages.[] | { name: .name | sub("[a-zA-Z.]+[:/](?.*)"; "\(.package)"), packageManager: .name | capture("(?[a-zA-Z.]+)[:/]").packageManager, version: .versionInfo } ] | reduce .[] as { $name, $packageManager, $version } ( {}; .[ $packageManager ] += [ $name + " v" + $version ] )' \ - 2>/dev/null + --jq '[ .sbom.packages.[] | { name: .name | sub("[a-zA-Z.]+[:/](?.*)"; "\(.package)"), packageManager: .name | capture("(?[a-zA-Z.]+)[:/]").packageManager, version: .versionInfo } ] | reduce .[] as { $name, $packageManager, $version } ( {}; .[ $packageManager ] += [ $name + " v" + $version ] )' 2>/dev/null ) # Extract the list of package managers