✨feat: Add Private Vulnerability Reporting probe to Security-Policy check#4929
Open
Ironankit525 wants to merge 1 commit intoossf:mainfrom
Open
✨feat: Add Private Vulnerability Reporting probe to Security-Policy check#4929Ironankit525 wants to merge 1 commit intoossf:mainfrom
Ironankit525 wants to merge 1 commit intoossf:mainfrom
Conversation
This adds a new probe 'privateVulnerabilityReportingEnabled' that checks
if GitHub's Private Vulnerability Reporting feature is enabled for a
repository.
Changes:
- Add HasPrivateVulnerabilityReportingEnabled() to RepoClient interface
- Implement GitHub client with direct API call to
/repos/{owner}/{repo}/private-vulnerability-reporting
- Add stub implementations for non-GitHub clients (GitLab, localdir,
git, Azure DevOps, OSS-Fuzz) returning ErrUnsupportedFeature
- Create privateVulnerabilityReportingEnabled probe with OutcomeTrue,
OutcomeFalse, and OutcomeNotApplicable support
- Integrate probe into Security-Policy check evaluation
- Add comprehensive tests
The probe returns:
- OutcomeTrue: PVR is enabled
- OutcomeFalse: PVR is not enabled (but available)
- OutcomeNotApplicable: PVR not available (non-GitHub repos)
Signed-off-by: Ankit <ankit@example.com>
Signed-off-by: Ironankit525 <ankitkumar17541@gmail.com>
81ac668 to
f24596b
Compare
|
This pull request has been marked stale because it has been open for 10 days with no activity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a new probe that detects whether GitHub's Private Vulnerability Reporting (PVR) feature is enabled on repositories, enhancing the Security-Policy check with visibility into GitHub's native vulnerability reporting mechanism.
Implementation Details
Core Changes
Interface Extension
HasPrivateVulnerabilityReportingEnabled()method to theRepoClientinterfaceGitHub Client Implementation
/repos/{owner}/{repo}/private-vulnerability-reportingendpointMulti-Platform Support
ErrUnsupportedFeaturefor:Probe Implementation
privateVulnerabilityReportingEnabledprobe with three outcome statesOutcome States
Change Type
Feature - New capability for detecting GitHub Private Vulnerability Reporting status
Behavioral Changes
Before
The Security-Policy check evaluated only:
After
The Security-Policy check now additionally evaluates:
Testing
Compliance Checklist
GitHub Issue
None - This is a new feature enhancement
Reviewer Notes
Important Considerations
Scoring Impact
Platform Compatibility
OutcomeNotApplicableAPI Requirements
User Impact
What Users Will See
Users running the Security-Policy check will now receive information about whether their GitHub repository has Private Vulnerability Reporting enabled. This helps teams understand their vulnerability disclosure posture and make informed decisions about security reporting mechanisms.
Example Output
Release Notes
Additional Context
Private Vulnerability Reporting is GitHub's built-in feature that allows security researchers to privately report vulnerabilities directly through the GitHub interface. This probe helps maintainers understand whether they're leveraging this native GitHub capability alongside traditional SECURITY.md files.