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

Update python known flaws files #2548

Conversation

mcarmona99
Copy link
Contributor

This PR is part of #2330

With the merge of the wazuh/wazuh#12067 related pull request into the dev-fix-python-code-vulnerabilities wazuh branch, only the required fixes mentioned in #2330 (comment) needs to be added.

In this PR, the known flaws files are updated so the test passes in the feature/remove-unused-subprocess-imports branch (which is going to be added to the wazuh-qa dev-fix-python-code-vulnerabilities branch.

$ pytest test_python_flaws.py --branch=feature/remove-unused-subprocess-imports
============================= test session starts ==============================
platform linux -- Python 3.9.2, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/manuel/git/wazuh-qa/tests/scans/code_analysis
plugins: html-3.1.1, metadata-1.11.0, testinfra-5.0.0
collected 1 item                                                               

test_python_flaws.py .                                                   [100%]

=============================== warnings summary ===============================
test_python_flaws.py::test_check_security_flaws
  invalid escape sequence \g

test_python_flaws.py::test_check_security_flaws
  invalid escape sequence \d

-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================== 1 passed, 2 warnings in 14.21s ========================

Copy link
Contributor

@Kondent Kondent left a comment

Choose a reason for hiding this comment

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

LGTM

@davidjiglesias davidjiglesias merged commit 0c0e62e into dev-fix-python-code-vulnerabilities Feb 7, 2022
@davidjiglesias davidjiglesias deleted the feature/update-known-flaws-python branch February 7, 2022 16:34
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.

None yet

3 participants