Skip to content

refact pkg/cwhub #3666

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

refact pkg/cwhub #3666

wants to merge 8 commits into from

Conversation

mmetc
Copy link
Contributor

@mmetc mmetc commented Jun 4, 2025

method extraction, clearer logic etc.

@mmetc mmetc added this to the Next release milestone Jun 4, 2025
@mmetc mmetc added the kind/enhancement New feature or request label Jun 4, 2025
Copy link

github-actions bot commented Jun 4, 2025

@mmetc: There are no area labels on this PR. You can add as many areas as you see fit.

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

Copy link

codecov bot commented Jun 4, 2025

Codecov Report

Attention: Patch coverage is 77.65957% with 21 lines in your changes missing coverage. Please review.

Project coverage is 60.73%. Comparing base (e9aa155) to head (b806ff4).

Files with missing lines Patch % Lines
pkg/cwhub/safepath.go 60.86% 6 Missing and 3 partials ⚠️
pkg/cwhub/fetch.go 76.47% 2 Missing and 2 partials ⚠️
pkg/cwhub/sync.go 87.50% 3 Missing and 1 partial ⚠️
pkg/cwhub/relativepath.go 50.00% 3 Missing ⚠️
pkg/cwhub/download.go 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3666      +/-   ##
==========================================
+ Coverage   60.70%   60.73%   +0.03%     
==========================================
  Files         372      373       +1     
  Lines       41019    41043      +24     
==========================================
+ Hits        24899    24926      +27     
+ Misses      14070    14068       -2     
+ Partials     2050     2049       -1     
Flag Coverage Δ
bats 44.43% <64.89%> (-0.03%) ⬇️
unit-linux 34.37% <39.36%> (+0.01%) ⬆️
unit-windows 24.31% <39.36%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@mmetc mmetc force-pushed the cwhub-safepath branch from 46235b6 to ee1c5a1 Compare June 4, 2025 13:34
@mmetc mmetc force-pushed the cwhub-safepath branch from ee1c5a1 to 363d833 Compare June 5, 2025 14:31
@mmetc mmetc changed the title cwhub: stricter SafePath() refact pkg/cwhub Jun 5, 2025
@mmetc mmetc force-pushed the cwhub-safepath branch from 363d833 to b806ff4 Compare June 5, 2025 14:55
@mmetc mmetc requested a review from sabban June 11, 2025 10:24
Copy link
Contributor

@sabban sabban left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request needs/area
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants