From b0ffa48bd375bb77493ddb3c9aa808d7aecf5616 Mon Sep 17 00:00:00 2001 From: Morgan Rowse Date: Wed, 18 Sep 2024 09:26:14 +0200 Subject: [PATCH] Update dependanot.yaml --- .github/workflows/dependanot.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependanot.yaml b/.github/workflows/dependanot.yaml index 10388c9..1448f79 100644 --- a/.github/workflows/dependanot.yaml +++ b/.github/workflows/dependanot.yaml @@ -41,7 +41,9 @@ jobs: jq '.resource.helm_release | with_entries(select(.value | map(select(.chart | test("^[^.\\$]"))) | length > 0))' out.json > filtered.json rm out.json - jq 'map_values(. |= { "kind": "helmchart", "spec": { "url": .[0].repository, "name": .[0].chart } })' filtered.json > sources.json + jq 'map_values(. |= { "kind": "helmchart", "spec": { "url": .[0].repository, "name": .[0].chart } })' filtered.json > pre-sources.json + jq 'if .karpenter then .karpenter.spec.versionFilter = {"kind": "semver", "pattern": "<9999"} else . end' pre-sources.json > sources.json + rm pre-sources.json jq 'to_entries | map({(.key): { "name": .key, "kind": "hcl", "sourceid": .key, "scmid": "default", "spec": { "file": "variables.tf", "path": ("locals." + .key + "_chart_version") } }}) | add' filtered.json > targets.json rm filtered.json