HI,
I happen to use in my project some addRunArtifact steps, but that got me thinking about dependencies that can do that too, which I find not very safe.
I would like to know how to dump, look through and assert all steps that are defined in the project, and so far I know I can b.graph.generated_files to look through mostly modules, buut that doesnt give me much confidence as I cant access through that addSystemCommand that is run from step only running that system command (some dependency could always have “run zig build notmaliciousstep” in its documentation, to do something, or it could just run system command that is zig build with malicious step)
So: Is there a way to get list of all build steps, and not only those that my dependency explicitly depends on? Or inspecting build graph, to later make assertions about it in build system a silly idea, and it should be done outside build system (dump steps->assert on than->conditionally run build)?