File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments