From b79b31a5d9ccf7db451411a3644a6ad449ec84b2 Mon Sep 17 00:00:00 2001 From: Johannes Kleinlercher Date: Wed, 22 Jan 2025 11:56:00 +0100 Subject: [PATCH] write in outputfile Signed-off-by: Johannes Kleinlercher --- .github/workflows/list-images.yaml | 2 +- .github/workflows/trivy-scan-table.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/list-images.yaml b/.github/workflows/list-images.yaml index 13523967..e6706448 100644 --- a/.github/workflows/list-images.yaml +++ b/.github/workflows/list-images.yaml @@ -54,7 +54,7 @@ jobs: echo "{\"chart\": \"${chart}\", \"image\": \"${image}\", \"id\": \"${id}\"}" >> image-list-temp.json done done - jq --slurp '.' image-list-temp.json image-list.json + jq --slurp '.' image-list-temp.json > image-list.json git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" diff --git a/.github/workflows/trivy-scan-table.yaml b/.github/workflows/trivy-scan-table.yaml index 7fb98d54..974c689e 100644 --- a/.github/workflows/trivy-scan-table.yaml +++ b/.github/workflows/trivy-scan-table.yaml @@ -33,7 +33,7 @@ jobs: echo "{\"chart\": \"${chart}\", \"image\": \"${image}\", \"id\": \"${id}\"}" >> image-list-temp.json done done - jq --slurp '.' image-list-temp.json image-list.json + jq --slurp '.' image-list-temp.json > image-list.json # find removed images compared to main branch and upload a json as an artifact # so the commit-report job can delete trivy reports from these images