github-copilot-repo-instructions
Pass
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes and generates repository-level instructions that steer GitHub Copilot's behavior. This creates a potential surface for indirect prompt injection if malicious instructions are introduced into the repository's configuration files.
- Ingestion points: Reads
.github/copilot-instructions.md,.github/instructions/*.instructions.md,AGENTS.md,CLAUDE.md, andGEMINI.mdduring the audit process inSKILL.md. - Boundary markers: The skill does not implement specific boundary markers or 'ignore' instructions when writing to the instruction files.
- Capability inventory: Includes the ability to write files to the local repository and mutate repository rulesets via the
gh apitool. - Sanitization: The skill provides actionable remediation guidance in
references/code-review-knobs.md, such as usingCODEOWNERSto protect the.github/directory and requiring human approval for changes to instruction files. - [COMMAND_EXECUTION]: The skill executes system commands to perform file operations and interact with the GitHub API.
- Evidence:
gh api repos/<owner>/<repo>/rulesets -X POSTis used inSKILL.mdandreferences/code-review-knobs.mdto configure automated Copilot reviews. - Evidence:
ls -la,mkdir -pare used for environment auditing and setup. - Guardrails: The protocol in
SKILL.mdand the guardrail eval inevals/evals.jsonrequire the agent to display the proposed payload and obtain explicit user consent before performing mutations.
Audit Metadata