Skip to content

Commit 2ed71c0

Browse files
Merge pull request #78 from mozilla-it/amitchell-MZCLD-785
fix(psa-checker): use find rather than assume dir name
2 parents 14aaf42 + ca819ac commit 2ed71c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/psa-checker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,7 @@ jobs:
6969
cd "shared/charts/$CHART_DIR/"
7070
for ENV_DIR in */; do
7171
echo -e "\nChecking $ENV_DIR for chart: $CHART_NAME"
72-
cat $ENV_DIR$CHART_NAME/templates/*.yaml | docker run -i $PSA_CHECKER_IMAGE:$PSA_CHECKER_SHA --level "$PSS_LEVEL" -f -
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 -
7375
done

0 commit comments

Comments
 (0)