-
Notifications
You must be signed in to change notification settings - Fork 7
Add guardrail in case manifest file does not exist #93
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
Conversation
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
🚀 Preview package published! Install with: pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketsecurity==2.1.15.dev1 Docker image: |
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
for manifest_data in package.manifestFiles: | ||
manifest_file = manifest_data.get("file") | ||
manifests += f"{manifest_file};" | ||
if hasattr(package, "manifestFiles"): |
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.
This could be simplified to else:
, no?
@@ -260,7 +260,7 @@ def main_code(): | |||
output_handler.handle_output(diff) | |||
|
|||
# Handle license generation | |||
if diff is not None and diff.id != "no_diff_id" and config.generate_license: | |||
if should_skip_scan and diff.id != "no_diff_id" and config.generate_license: |
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.
Is this correct? Or did you mean to check for whether NOT should_skip_scan here?
Root Cause
Logic for only creating the license file if a diff scan was ran was incorrect
Fix
Changed logic for detection
Public Changelog
N/A