csharp-scripts
Pass
Audited by Gen Agent Trust Hub on May 20, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: Executes .NET SDK commands such as
dotnet --versionto verify the environment anddotnet <file>.csto compile and run the user-provided C# code. - [COMMAND_EXECUTION]: Performs file system operations including
chmod +xto make scripts executable andmkdir,cd, andrmfor managing temporary workspace directories and script cleanup. - [EXTERNAL_DOWNLOADS]: Utilizes the
#:packagedirective to download and restore NuGet packages from official package registries, which is standard practice for including dependencies in C# development. - [SAFE]: Includes explicit instructions for the agent to clean up script files and cached build artifacts after execution, promoting good workspace hygiene.
- [SAFE]: Encourages security and performance best practices, such as using source-generated JSON serialization for scripts running under Native AOT (Ahead-of-Time compilation).
Audit Metadata