From b883601cff1ecf9864eb70cc7bcb496ef44647c4 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sun, 25 Dec 2022 12:18:16 +0100 Subject: [PATCH] Update secgen.yaml Signed-off-by: Kjeld Schouten-Lebbing --- .github/workflows/secgen.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/secgen.yaml b/.github/workflows/secgen.yaml index ed2bed93c60..99057b0c1b8 100644 --- a/.github/workflows/secgen.yaml +++ b/.github/workflows/secgen.yaml @@ -59,6 +59,8 @@ jobs: echo "Rendering helm-template for ${chartname}" mkdir -p ${chart}/render helm template ${chart} >> ${chart}/render/app.yaml || echo "Helm template failed..." + rm -rf website/docs/charts/${train}/${chartname}/helm-security.md || echo "removing old helm-security file failed..." + rm -rf website/docs/charts/${train}/${chartname}/container-security.md || echo "removing old container-security file failed..." } helm_sec_scan() { local chart="$1" @@ -66,7 +68,6 @@ jobs: local train="$3" echo "Scanning helm security for ${chartname}" mkdir -p ${chart}/render - rm -rf website/docs/charts/${train}/${chartname}/helm-security.md || echo "removing old helm-security file failed..." echo "# Helm Security" >> website/docs/charts/${train}/${chartname}/helm-security.md echo "" >> website/docs/charts/${train}/${chartname}/helm-security.md echo "## Helm-Chart" >> website/docs/charts/${train}/${chartname}/helm-security.md @@ -81,7 +82,6 @@ jobs: local train="$3" echo "Scanning container security for ${chartname}" mkdir -p ${chart}/render - rm -rf website/docs/charts/${train}/${chartname}/container-security.md || echo "removing old container-security file failed..." echo "# Container Security" >> website/docs/charts/${train}/${chartname}/container-security.md echo "" >> website/docs/charts/${train}/${chartname}/container-security.md echo "##### Detected Containers" >> website/docs/charts/${train}/${chartname}/container-security.md