In Writing custom controls to check spreadsheet integrity we show an example based on these files. To run it for yourself:
-
steampipe plugin install csv -
Edit
~/.steampipe/config/csv.spc, refer to this directory, e.g:paths = [ "~/steampipe-samples/spreadsheet-integrity" ]
-
Run
steampipe query, then:-
.inspect csvto check that the tables exist -
select * from csv.people -
select * from csv.sessions
-
-
steampipe check control.sessions_valid_in_session_table -
steampipe check control.sessions_valid_in_people_table -
steampipe check all -
steampipe check all --export event_planning.html