cli/pkg/cmd/attestation
William Martin c51769c977 Record agentic invocations in User-Agent header
Detect which AI coding agent is invoking gh by checking well-known
environment variables and include the agent name in the User-Agent
header sent to GitHub APIs.

Supported agents: Codex, Gemini CLI, Copilot CLI, OpenCode,
Claude Code, and Amp. Generic AI_AGENT env var is also supported
with validation to prevent header injection.

Fixes github/cli#1111

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 19:58:37 +01:00
..
api test fixup 2025-10-22 08:56:13 -07:00
artifact chore: apply go fix to remove deprecated // +build tags 2025-10-30 21:10:45 +00:00
auth Revert "temporarily skip non-failing tests" 2025-04-09 07:23:17 -06:00
download Revert "temporarily skip non-failing tests" 2025-04-09 07:23:17 -06:00
inspect simplify test 2025-05-07 16:47:14 -06:00
io remove bolding from bullet point output 2025-01-23 07:47:38 -07:00
test update the artifact and bundle for testing 2025-05-30 13:31:23 -07:00
trustedroot Remove mention of public preview in trustedroot.go 2025-09-02 23:42:03 +00:00
verification Remove skipped tests 2025-10-24 13:45:16 -05:00
verify Record agentic invocations in User-Agent header 2026-03-24 19:58:37 +01:00
attestation.go Unify use of tab indent in non-test source files 2024-08-03 00:35:30 +08:00