fix issues with new action

This commit is contained in:
Kjeld Schouten-Lebbing
2022-12-22 19:41:59 +01:00
parent a8793d2251
commit e65c77b756
+5 -5
View File
@@ -35,7 +35,7 @@ jobs:
- name: Setting repo parent dir as safe safe.directory - name: Setting repo parent dir as safe safe.directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout - name: Checkout website
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3 uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3
with: with:
fetch-depth: 1 fetch-depth: 1
@@ -43,9 +43,10 @@ jobs:
token: ${{ secrets.BOT_TOKEN }} token: ${{ secrets.BOT_TOKEN }}
path: website path: website
- name: Copy docs to website - name: generate security reports
shell: bash shell: bash
run: | run: |
#!/bin/bash
helm_sec_scan() { helm_sec_scan() {
local chart="$1" local chart="$1"
local chartname="$2" local chartname="$2"
@@ -88,10 +89,10 @@ jobs:
} }
for train in stable SCALE incubator games enterprise develop non-free deprecated dependency core; do for train in stable SCALE incubator games enterprise develop non-free deprecated dependency core; do
for chart in charts/${train}/*; do for chart in charts/${train}/*; do
if [ -d "${chart}" ]; then
chartname="$(basename "$(dirname "$path")")" chartname="$(basename "$(dirname "$path")")"
if [ -d "${chart}" ]; then
helm_sec_scan ${chart} ${chartname} ${train} helm_sec_scan ${chart} ${chartname} ${train}
#container_sec_scan ${chart} ${chartname} ${train} # container_sec_scan ${chart} ${chartname} ${train}
fi fi
done done
done done
@@ -106,4 +107,3 @@ jobs:
git add --all git add --all
git commit -sm "Commit released docs for TrueCharts" || exit 0 git commit -sm "Commit released docs for TrueCharts" || exit 0
git push git push