-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: throw warning if sbom is tagged internal #364
base: main
Are you sure you want to change the base?
Conversation
Coverage Report •
|
cdxev/build_public_bom.py
Outdated
logger = logging.getLogger(__name__) | ||
|
||
|
||
def check_affected_metadata(metadata: dict[str, Any], path_to_schema: Path) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the already existing function, where it's checked for components
instead of introducing a new function
cdxev/build_public_bom.py
Outdated
"Warning: `metadata.component` is not affected by the JSON schema!", | ||
"Please check manually.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning should be something like "metadata.component
was not removed even though the JSON schema applies to it. Maybe you try to create an external SBOM for an internal component?"
closes: #224