File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,15 @@ jobs:
63
63
PSS_LEVEL : ${{ inputs.pss_level }}
64
64
CHART_DIR : ${{ matrix.chart }}
65
65
run : |
66
- # Loop over each `values-*` dir and check PSS levels
66
+ # Loop over templates from each `values-*` dir and check PSS levels
67
67
docker pull $PSA_CHECKER_IMAGE:$PSA_CHECKER_SHA # Pull before run so the output is less messy
68
- CHART_NAME=$(echo "$CHART_DIR" | cut -d'/' -f3)
69
68
cd "shared/charts/$CHART_DIR/"
70
69
for ENV_DIR in */; do
71
- echo -e "\nChecking $ENV_DIR for chart: $CHART_NAME"
72
- cd "$(find $ENV_DIR -type d -name 'templates')"
73
- cat *.yaml | docker run -i $PSA_CHECKER_IMAGE:$PSA_CHECKER_SHA --level "$PSS_LEVEL" -f -
74
- cd -
70
+ # If there are dependencies, loop over all of them
71
+ for CHART in $(find $ENV_DIR -type d -name 'templates'); do
72
+ echo -e "\nRunning psa-checker for chart: $CHART"
73
+ cd $CHART
74
+ cat *.yaml | docker run -i $PSA_CHECKER_IMAGE:$PSA_CHECKER_SHA --level "$PSS_LEVEL" -f -
75
+ cd -
76
+ done
75
77
done
You can’t perform that action at this time.
0 commit comments