Skip to content

Commit 62e77e4

Browse files
Set max-depth to avoid catching nested JSONS that shouldn't be
1 parent e6b8254 commit 62e77e4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ jobs:
5353
fi
5454
5555
echo "Building analyzers matrix..."
56-
all_analyzers=$(find analyzers -type f -name '*.json' -printf '%P\n' | \
57-
grep -E "^($allowed_analyzers)/" | \
56+
all_analyzers=$(find analyzers -maxdepth 2 -type f -name '*.json' -printf '%P\n' | \
57+
grep -E "^($allowed_analyzers)/[^/]+\.json$" | \
5858
jq -R -s -c 'split("\n")[:-1] | map({directory: (split("/")[0]), path: .})')
5959
6060
# Split analyzers into two groups: 1-256 and 257+
6161
analyzers_matrix_a=$(echo "$all_analyzers" | jq -c '{include: .[0:256]}')
6262
analyzers_matrix_b=$(echo "$all_analyzers" | jq -c '{include: .[256:]}')
6363
6464
echo "Building responders matrix..."
65-
responders_matrix=$(find responders -type f -name '*.json' -printf '%P\n' | \
66-
grep -E "^($allowed_responders)/" | \
65+
responders_matrix=$(find responders -maxdepth 2 -type f -name '*.json' -printf '%P\n' | \
66+
grep -E "^($allowed_responders)/[^/]+\.json$" | \
6767
jq -R -s -c 'split("\n")[:-1] | map({directory: (split("/")[0]), path: .}) | {include: .}')
6868
6969
echo "Generated analyzers matrix A (1-256): $analyzers_matrix_a"

0 commit comments

Comments
 (0)