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

Fix various CodeQL alerts #1104

Merged
merged 5 commits into from
Dec 19, 2023
Merged

Conversation

timopollmeier
Copy link
Member

What

  • The check_command_status function will now always explicitly return
    False unless the check succeeds while the non-None return from
    _ssh_authentication_input_loop has been removed.
  • Some unused local variables holding the return values from add_element
    calls are removed.
  • The class InvalidArgumentType now explicitly calls the superclass
    initializer, making it more explict that the message is set to None.

Why

This addresses various CodeQL alerts.

References

GEA-421

Checklist

  • Tests

The check_command_status function will now always explicitly return
False unless the check succeeds while the non-None return from
_ssh_authentication_input_loop has been removed.
Some unused local variables holding the return values from add_element
calls are removed.
The class InvalidArgumentType now explicitly calls the superclass
initializer, making it more explict that the message is set to None.
@timopollmeier timopollmeier requested a review from a team as a code owner December 19, 2023 08:55
@greenbonebot greenbonebot enabled auto-merge (rebase) December 19, 2023 08:55
Copy link

Conventional Commits Report

Type Number
Bug Fixes 3

🚀 Conventional commits found.

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (802ec6c) 98.17% compared to head (a024d3c) 98.17%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1104   +/-   ##
=======================================
  Coverage   98.17%   98.17%           
=======================================
  Files          60       60           
  Lines        4445     4445           
  Branches     1060     1060           
=======================================
  Hits         4364     4364           
  Misses         67       67           
  Partials       14       14           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

gvm/utils.py Fixed Show fixed Hide fixed
bjoernricks
bjoernricks previously approved these changes Dec 19, 2023
gvm/utils.py Outdated Show resolved Hide resolved
Co-authored-by: Björn Ricks <bjoern.ricks@greenbone.net>
@greenbonebot greenbonebot merged commit 75a74bb into greenbone:main Dec 19, 2023
18 checks passed
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

4 participants