Skip to content

feat(ai): send number of secrets detected by ai agent hook#1313

Open
pbeslin-gg wants to merge 1 commit into
mainfrom
pbeslin/ai-hook-secrets-count
Open

feat(ai): send number of secrets detected by ai agent hook#1313
pbeslin-gg wants to merge 1 commit into
mainfrom
pbeslin/ai-hook-secrets-count

Conversation

@pbeslin-gg

Copy link
Copy Markdown
Collaborator

Context

What has been done

Validation

Depends on GitGuardian/py-gitguardian#185
When an AI agent hook blocks a secret, an event is sent to the GitGuardian API with metadata on the hook execution (including the number of secrets detected, but not their values).

PR check list

  • As much as possible, the changes include tests (unit and/or functional)
  • If the changes affect the end user (new feature, behavior change, bug fix) then the PR has a changelog entry (see doc/dev/getting-started.md). If the changes do not affect the end user, then the skip-changelog label has been added to the PR.

@pbeslin-gg pbeslin-gg requested review from a team as code owners June 22, 2026 15:33
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.66%. Comparing base (a7b9216) to head (c0a72b0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1313   +/-   ##
=======================================
  Coverage   93.65%   93.66%           
=======================================
  Files         189      190    +1     
  Lines       11088    11105   +17     
=======================================
+ Hits        10385    10402   +17     
  Misses        703      703           
Flag Coverage Δ
unittests 93.66% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pbeslin-gg pbeslin-gg force-pushed the pbeslin/ai-hook-secrets-count branch from 39cf53f to d56418e Compare June 22, 2026 15:42
@pbeslin-gg pbeslin-gg force-pushed the pbeslin/ai-hook-secrets-count branch from d56418e to c0a72b0 Compare June 23, 2026 09:17
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.

1 participant