crowdsecurity / crowdsec

CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
https://crowdsec.net
MIT License
8.79k stars 453 forks source link

pkg/cwhub: use explicit context for version check, index update #3064

Closed mmetc closed 3 months ago

github-actions[bot] commented 3 months ago

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

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) 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](https://github.com/BirthdayResearch/oss-governance-bot) repository.
codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 46.77419% with 66 lines in your changes missing coverage. Please review.

Project coverage is 52.43%. Comparing base (550d422) to head (f3aa641). Report is 1 commits behind head on master.

Files Patch % Lines
cmd/crowdsec-cli/require/branch.go 37.50% 19 Missing and 6 partials :warning:
pkg/hubtest/hubtest.go 0.00% 10 Missing :warning:
cmd/crowdsec/serve.go 30.00% 7 Missing :warning:
cmd/crowdsec-cli/hub.go 60.00% 4 Missing and 2 partials :warning:
pkg/cwhub/hub.go 60.00% 4 Missing and 2 partials :warning:
pkg/hubtest/hubtest_item.go 0.00% 5 Missing :warning:
cmd/crowdsec-cli/config_restore.go 66.66% 0 Missing and 2 partials :warning:
cmd/crowdsec-cli/require/require.go 71.42% 2 Missing :warning:
pkg/cwversion/version.go 0.00% 1 Missing and 1 partial :warning:
cmd/crowdsec-cli/itemcli.go 91.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3064 +/- ## ========================================== - Coverage 52.48% 52.43% -0.06% ========================================== Files 281 281 Lines 35423 35462 +39 ========================================== + Hits 18593 18595 +2 - Misses 15008 15036 +28 - Partials 1822 1831 +9 ``` | [Flag](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3064/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | Coverage Δ | | |---|---|---| | [bats](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3064/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `40.20% <56.86%> (-0.03%)` | :arrow_down: | | [unit-linux](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3064/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `34.81% <8.00%> (-0.04%)` | :arrow_down: | | [unit-windows](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3064/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `30.94% <6.45%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.