Skip to content

feat: Add secret scanning push protection pattern configurations API #3672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

dmclink
Copy link

@dmclink dmclink commented Aug 12, 2025

Adds support for newly announced API endpoints

Closes #3661

@alexandear
Copy link
Contributor

Please see #3667 (review)

@dmclink dmclink changed the title feat: Add secret scanning push protection pattern configurations API (Issue #3661) feat: Add secret scanning push protection pattern configurations API [Closes #3661] Aug 12, 2025
@dmclink dmclink changed the title feat: Add secret scanning push protection pattern configurations API [Closes #3661] feat: Add secret scanning push protection pattern configurations API Aug 12, 2025
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 25.00000% with 39 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.02%. Comparing base (84a0945) to head (35a09e2).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
github/secret_scanning_pattern_configs.go 25.00% 39 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3672      +/-   ##
==========================================
- Coverage   91.23%   91.02%   -0.21%     
==========================================
  Files         185      186       +1     
  Lines       16421    16473      +52     
==========================================
+ Hits        14982    14995      +13     
- Misses       1254     1293      +39     
  Partials      185      185              

☔ View full report in Codecov by Sentry.
📢 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.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Aug 12, 2025
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @dmclink!
Just a couple additions, please, then we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.

CustomPatternSettings []*SecretScanningCustomPatternSetting `json:"custom_pattern_settings,omitempty"`
}

type SecretScanningProviderPatternSetting struct {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a godoc-style comment for every exported struct.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @dmclink!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

@alexandear or @stevehipwell - might one of you have time for a code review? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsReview PR is awaiting a review before merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for new push protection APIs
3 participants