Skip to content

DEB archives support#711

Merged
babenek merged 22 commits intoSamsung:mainfrom
babenek:ar
May 5, 2025
Merged

DEB archives support#711
babenek merged 22 commits intoSamsung:mainfrom
babenek:ar

Conversation

@babenek
Copy link
Copy Markdown
Contributor

@babenek babenek commented Apr 30, 2025

Description

Please include a summary of the change and which is fixed.

  • Add Debian archives support for deep scan
  • Fix free function extra invocation
  • Add file path to info for deep scan
  • Fix some warnings of pylint
  • Add duple symbol filter pattern

How has this been tested?

Please describe the tests that you ran to verify your changes.

  • UnitTest
  • Benchmark

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 30, 2025

Codecov Report

❌ Patch coverage is 86.80556% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.84%. Comparing base (a779db6) to head (5010a11).
⚠️ Report is 100 commits behind head on main.

Files with missing lines Patch % Lines
credsweeper/deep_scanner/deb_scanner.py 81.25% 4 Missing and 2 partials ⚠️
credsweeper/deep_scanner/deep_scanner.py 84.37% 2 Missing and 3 partials ⚠️
credsweeper/__main__.py 0.00% 1 Missing ⚠️
credsweeper/credentials/candidate_key.py 0.00% 1 Missing ⚠️
credsweeper/file_handler/data_content_provider.py 50.00% 0 Missing and 1 partial ⚠️
credsweeper/file_handler/files_provider.py 50.00% 0 Missing and 1 partial ⚠️
...redsweeper/file_handler/string_content_provider.py 50.00% 0 Missing and 1 partial ⚠️
credsweeper/filters/value_pattern_check.py 97.29% 0 Missing and 1 partial ⚠️
credsweeper/rules/rule.py 50.00% 1 Missing ⚠️
credsweeper/utils/hop_stat.py 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #711   +/-   ##
=======================================
  Coverage   92.83%   92.84%           
=======================================
  Files         140      141    +1     
  Lines        5054     5115   +61     
  Branches      825      836   +11     
=======================================
+ Hits         4692     4749   +57     
- Misses        219      226    +7     
+ Partials      143      140    -3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread .github/workflows/benchmark.yml Outdated
@babenek babenek marked this pull request as ready for review May 2, 2025 07:57
@babenek babenek requested a review from a team as a code owner May 2, 2025 07:57
Dmitriy-NK
Dmitriy-NK previously approved these changes May 2, 2025
Copy link
Copy Markdown
Contributor

@Dmitriy-NK Dmitriy-NK left a comment

Choose a reason for hiding this comment

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

Thank you for improvement. Please, check some minor remark from me.

"""Implements deb (ar) scanning"""

def data_scan(
self, #
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove blank comments from code

Suggested change
self, #
self,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

unfortunately, the sign is necessary to keep formatting yapf suitable

Comment thread credsweeper/deep_scanner/deb_scanner.py Outdated
data_provider: DataContentProvider, #
depth: int, #
recursive_limit_size: int) -> Optional[List[Candidate]]:
"""Extracts data file from ar archive and launches data_scan"""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please leave only 'archive' or be more specific.

@@ -54,6 +56,7 @@ class DeepScanner(
Pkcs12Scanner, #
PptxScanner, #
TarScanner, #
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same as previous, please remove blank comments from code

Comment thread credsweeper/deep_scanner/deb_scanner.py Outdated
Comment thread docs/source/guide.rst Outdated
@babenek babenek merged commit 4785dbc into Samsung:main May 5, 2025
29 checks passed
@babenek babenek deleted the ar branch May 7, 2025 09:23
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.

5 participants