Skip to content

Conversation

dmclink
Copy link
Contributor

@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 6 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!

Copy link
Contributor

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

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

LGTM

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

gmlewis commented Aug 13, 2025

Thank you, @stevehipwell!
Merging.

@gmlewis gmlewis merged commit b0d4e1e into google:master Aug 13, 2025
5 of 7 checks passed
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.

Add support for new push protection APIs
4 participants