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 - remote repo scan with config only option generates panic #948

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

patilpankaj212
Copy link
Contributor

No description provided.

@sonarcloud
Copy link

sonarcloud bot commented Jul 26, 2021

Kudos, SonarCloud Quality Gate passed!    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 Jul 26, 2021

Codecov Report

Merging #948 (f0ec4dd) into master (485d577) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #948   +/-   ##
=======================================
  Coverage   78.81%   78.81%           
=======================================
  Files         216      216           
  Lines        5272     5272           
=======================================
  Hits         4155     4155           
  Misses        864      864           
  Partials      253      253           
Impacted Files Coverage Δ
pkg/cli/run.go 88.88% <0.00%> (ø)

@kanchwala-yusuf kanchwala-yusuf merged commit d1d21fc into tenable:master Jul 26, 2021
cesar-rodriguez added a commit that referenced this pull request Aug 5, 2021
* add: support for using already downloaded remote module from terraform cache

* code nits: added comments

* added e2e test for --use-terraform-cache flag

* added unit test for newly added function

* adds usage of --non-recursive and --use-terraform-cache in docs

* Update run.go

Fixes typo

* code nits: type fix and code implementation changes

* Adds: use of map to pass scan options to IaC provider

- changed interface method signature to accept map parameter so that we can pass any no of flag to    implementer without changing method signature.
- moved the non recursive flag to map to achieve uniformity
- In terraform used switch for flag identification so that in future new flag or option provided just need to add another case rather than if/else

* Update README.md (#945)

updated all links .

* update helm chart progress checklist (#943)

We doSupport TLS certificate/key in existing secrets

* Update mkdocs-material from 7.1.11 to 7.2.0 (#939)

* fix - config only option used with remote repo scan generates panic (#948)

* Update mkdocs-material from 7.2.0 to 7.2.1 (#947)

* Adds Terrascan pre-commit (#953)

Adds pre-commit integration for Terrascan

Co-authored-by: mihirhasan <[email protected]>

* Update mkdocs-material from 7.2.1 to 7.2.2 (#954)

* terraform cache use with non recursive dir scan

- modified code to make scan directory non recursively when --use-terraform-cache is used.
- modified scan command flag description and docs accordingly.

* fixes: docker implementer for map parameter

- modified docker LoadIacDir and LoadIacFile method to accept map parameter
- registered docker as cloud provider so that docker policies will be used from '.terrascan' folder

* code nits: removed unwanted if condtions and added error logs

Co-authored-by: Cesar Rodriguez <[email protected]>
Co-authored-by: Sangam Biradar <[email protected]>
Co-authored-by: Devang Gaur <[email protected]>
Co-authored-by: pyup.io bot <[email protected]>
Co-authored-by: Pankaj Patil <[email protected]>
Co-authored-by: mihirhasan <[email protected]>
Co-authored-by: mihirhasan <[email protected]>
@patilpankaj212 patilpankaj212 deleted the fix-panic branch May 5, 2022 11:37
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.

3 participants