Closed mm-weber closed 4 months ago
Persists with 9.5.1.
More info:
Just did a manual recording of the MacOS13 policy. This worked well for all checks but queries using asset.
. I think it automatically records and stores the asset information anyway and as soon as you hit asset
another time, there's no place where you could store it.
Also scanning a .json
file with
cnspec scan mock --use-recording 9.5.1_manual.json
runs into errors:
Seems fixed
Describe the bug The
--record
switch doesn't work properly withcnspec scan
and the generated .json file does not include any resources. Usingcnspec shell --record
works as expected but for checks usingasset
. Which throws an error (see below).To Reproduce Steps to reproduce the behavior:
yields a file with the following content:
Expected behavior Like when using
cnspec shell --record
theresources
field needs to be populated.Screenshots or CLI Output Populated
resources
field:Desktop (please complete the following information):
OS: Ubuntu 22.04 cnspec:
Additional context Add any other context about the problem here.