bats-testing-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPRIVILEGE_ESCALATION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The documentation references installation methods for the Bats testing framework using standard tools like npm and official sources like the bats-core GitHub repository. These are well-known and expected practices for the described functionality.
- [COMMAND_EXECUTION]: The skill provides examples of command stubbing by creating executable files in temporary directories and modifying the PATH. This is a legitimate and standard pattern for isolating shell script unit tests.
- [PRIVILEGE_ESCALATION]: The skill uses
chmodto modify permissions on temporary test files to simulate error conditions (e.g., permission denied). These actions are limited to test fixtures in temporary storage and do not represent a threat to system security.
Audit Metadata