Skip to content

Commit 77c8a75

Browse files
committed
fix: yq update
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
1 parent 9da035d commit 77c8a75

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/verifyimage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ jobs:
204204
crs/tests/docker-compose.yml
205205
- name: Patch nginx overrides for nginx 1.30.0 (920100-4 now returns 405)
206206
run: |
207-
yq -i '(.test_overrides[] | select(.rule_id == 920100 and .test_ids == [4])).output.status = 405' crs/tests/regression/nginx-overrides.yaml
207+
yq e -i '(.test_overrides[] | select(.rule_id == 920100 and .test_ids[0] == 4 and (.test_ids | length) == 1) | .output.status) = 405' \
208+
crs/tests/regression/nginx-overrides.yaml
208209
- name: Run CRS tests for ${{ matrix.target }}
209210
# Log flushing isn't reliable enough for go-ftw (https://github.com/coreruleset/go-ftw/issues/473)
210211
if: ${{!contains(matrix.target, 'nginx-alpine')}}

0 commit comments

Comments
 (0)