gh-switch
Pass
Audited by Gen Agent Trust Hub on Nov 23, 2026
Risk Level: SAFECOMMAND_EXECUTIONCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes
git,gh, andsshcommands to determine repository state and switch CLI accounts. - [CREDENTIALS_UNSAFE]: It reads and processes
GITLAB_TOKENvalues stored in.env/.envfiles. It implements a masking mechanism to prevent these tokens from appearing in logs or output. - [DYNAMIC_EXECUTION]: It uses the
subprocessmodule to run external tools with arguments derived from Git remote URLs and user-defined configuration files. - [EXTERNAL_DOWNLOADS]: It performs HTTPS GET requests to the GitLab API (e.g.,
https://{host}/api/v4/user) to validate that the provided token matches the expected account.
Audit Metadata