Skip to content

feat(automations): add GitHub Copilot hook host adapter and config (#245) - #295

Open
Sanjai-Gopal wants to merge 5 commits into
secfoo-com:mainfrom
Sanjai-Gopal:feat/automations-copilot-245
Open

Sanjai-Gopal wants to merge 5 commits into
secfoo-com:mainfrom
Sanjai-Gopal:feat/automations-copilot-245

Conversation

@Sanjai-Gopal

Copy link
Copy Markdown
Contributor

Fixes #245

Depends on #291.

Summary

  • Add src/secfoo/automations/hosts/copilot.py supporting Copilot CLI (preToolUse/postToolUse/agentStop/sessionStart) and VS Code (PreToolUse/tool_input) payloads.
  • Update manager.py to write .github/hooks/secfoo.json (project) and ~/.copilot/hooks/secfoo.json (user) with exec/args and timeoutSec, plus .claude/settings.json deduplication (covered_by_claude).
  • Add examples/ci/copilot-setup-steps.yml, docs/COPILOT_AUTOMATIONS.md, fixtures, and tests/test_automations/test_copilot_automations.py.

Verified

  • pytest tests/test_automations/ tests/test_docs_consistency.py -v (34 passed)
  • ruff check . & bandit -r src/secfoo -c .bandit -ll -q

@Sanjai-Gopal
Sanjai-Gopal requested a review from vsn411 as a code owner December 6, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automations for GitHub Copilot: hooks in CLI, VS Code and the cloud agent

2 participants