chainguard-dev / actions

A collection of reusable Github Actions workflows.
Apache License 2.0
119 stars 57 forks source link

Fix docker inspect for latest runner images #448

Closed skonto closed 5 months ago

skonto commented 5 months ago
skonto commented 5 months ago

Interesting, this does not work on the actual runner image due to the older jq version, 1.6,. It does work on 1.7.1 locally on my machine though:

jq: error: syntax error, unexpected '[', expecting FORMAT or QQSTRING_START (Unix shell quoting issues?) at <top-level>, line 1:
.IPAM.Config.[].Subnet | select(. | test("^[0-9]+\\."))      

I will update with the command here.

skonto commented 5 months ago

We might want to simplify using grep -P if we assume that this will not run with Kind on Mac.

mattmoor commented 5 months ago

thanks @skonto !