Skip to content
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

[RUM] A small change #117

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

andreicoj
Copy link
Collaborator

What and why?

What changes does this pull request introduce and why is it necessary?

Review checklist

  • This pull request has appropriate unit and / or integration tests

@andreicoj andreicoj force-pushed the andrei.cojocaru/test-license-server-in-ci branch 2 times, most recently from 0ef4220 to b4cac46 Compare December 13, 2024 18:43
@andreicoj andreicoj force-pushed the andrei.cojocaru/test-license-server-in-ci branch from bf1b844 to 98aa98e Compare December 13, 2024 19:27
try:
task = main()
res = asyncio.get_event_loop().run_until_complete(task)
exit(res)

Choose a reason for hiding this comment

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

🔴 Code Quality Violation

do not use exit() (...read more)

Use sys.exit() instead of exit(). Exit is a builtin and done mostly for the console. sys.exit() is done for program with a proper return argument (see documentation).

Learn More

View in Datadog  Leave us feedback  Documentation

await aiofiles.stdout.write("[unity] ")
await aiofiles.stdout.write(line)
except BlockingIOError:
pass

Choose a reason for hiding this comment

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

🔴 Code Quality Violation

silent exception (...read more)

Using the pass statement in an exception block ignores the exception. Exceptions should never be ignored. Instead, the user must add code to notify an exception occurred and attempt to handle it or recover from it.

The exception to this rule is the use of StopIteration or StopAsyncIteration when implementing a custom iterator (as those errors are used to acknowledge the end of a successful iteration).

View in Datadog  Leave us feedback  Documentation

exit(res)
except Exception as e:
print(e)
exit(-1)

Choose a reason for hiding this comment

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

🔴 Code Quality Violation

do not use exit() (...read more)

Use sys.exit() instead of exit(). Exit is a builtin and done mostly for the console. sys.exit() is done for program with a proper return argument (see documentation).

Learn More

View in Datadog  Leave us feedback  Documentation

@@ -0,0 +1,6 @@
aiofiles==24.1.0
GitPython==3.1.31

Choose a reason for hiding this comment

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

Library Vulnerability

gitpython → 3.1.31

GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments (...read more)

GitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from, making it vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inject a maliciously crafted remote URL into the clone command. Exploiting this vulnerability is possible because the library makes external calls to git without sufficient sanitization of input arguments. NOTE: this issue exists because of an incomplete fix for CVE-2022-24439.

View in Datadog  Leave us feedback  Documentation

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.

2 participants