gh-cli
Pass
Audited by Gen Agent Trust Hub on Sep 2, 2026
Risk Level: SAFECREDENTIALS_UNSAFECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill documentation describes commands that expose sensitive authentication information.
- Evidence:
references/core.mdexplains how to usegh auth tokenandgh auth status --show-tokento reveal stored GitHub tokens. - [DATA_EXFILTRATION]: The skill documents workflows for reading sensitive local files and transmitting them to GitHub's servers.
- Evidence:
references/actions.mdprovides an example commandgh secret set DEPLOY_KEY < ~/.ssh/id_deploywhich reads a private SSH key and uploads it as a secret. - Evidence:
references/actions.mdshows how to bulk-load environment variables from.envfiles usinggh secret set -f .env. - Evidence:
references/repo-release.mdincludesgh repo deploy-key add ~/.ssh/deploy.pubfor reading SSH public keys. - [COMMAND_EXECUTION]: The skill provides instructions for using powerful subcommands that can execute arbitrary logic or interact with the shell.
- Evidence:
SKILL.mddescribesgh apias an "escape hatch" for arbitrary REST/GraphQL operations. - Evidence:
references/core.mddocumentsgh alias set --shellwhich allows creating aliases that execute through the system shell, supporting pipes and redirection. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process data from external GitHub resources that may contain untrusted content.
- Ingestion points: Commands like
gh pr view,gh issue list, andgh run view --log-failed(which reads CI logs) ingest data from the GitHub platform into the agent's context. (Found inSKILL.md,references/pr.md,references/issues.md,references/actions.md) - Boundary markers: The instructions do not define specific delimiters or warnings to ignore instructions embedded in the retrieved content.
- Capability inventory: The skill possesses broad capabilities including file read/write, secret management, and network communication via the GitHub API.
- Sanitization: There are no documented steps for sanitizing or escaping content retrieved from pull requests, issues, or logs before processing.
Audit Metadata