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

refactor init command for robust policy download checks #531

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

devang-gaur
Copy link
Contributor

Currently we delete the existing locally cached policy set before making ensuring that the new policy set can be download ( there can be absence of internet connection or maybe github servers down leading to disability in downloading new policy set).

This PR will refactor the init process so that we download the new policy set before sweeping off the existing locally cached policy set.

@sonarcloud
Copy link

sonarcloud bot commented Feb 3, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

Merging #531 (24bdc7a) into master (40a9ac6) will increase coverage by 0.02%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #531      +/-   ##
==========================================
+ Coverage   75.32%   75.34%   +0.02%     
==========================================
  Files          94       94              
  Lines        2233     2235       +2     
==========================================
+ Hits         1682     1684       +2     
  Misses        408      408              
  Partials      143      143              
Impacted Files Coverage Δ
pkg/cli/init.go 25.00% <0.00%> (+5.00%) ⬆️
pkg/cli/scan.go 66.66% <0.00%> (-1.52%) ⬇️
pkg/cli/server.go 20.00% <0.00%> (ø)
pkg/initialize/run.go 50.00% <100.00%> (+5.88%) ⬆️

Copy link
Contributor

@jlk jlk left a comment

Choose a reason for hiding this comment

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

LGTM

@jlk jlk merged commit 4febd3b into tenable:master Feb 3, 2021
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.

2 participants