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

Adds Terrascan pre-commit #953

Merged
merged 30 commits into from
Jul 31, 2021
Merged

Adds Terrascan pre-commit #953

merged 30 commits into from
Jul 31, 2021

Conversation

mihirhasan
Copy link
Contributor

No description provided.

@sonarcloud
Copy link

sonarcloud bot commented Jul 30, 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
No Duplication information No Duplication information

@mihirhasan mihirhasan marked this pull request as ready for review July 30, 2021 20:50
@cesar-rodriguez cesar-rodriguez changed the title pre-commit update Adds pre-commit support for Terrascan Jul 31, 2021
@cesar-rodriguez cesar-rodriguez changed the title Adds pre-commit support for Terrascan Adds Terrascan pre-commit Jul 31, 2021
@codecov
Copy link

codecov bot commented Jul 31, 2021

Codecov Report

Merging #953 (f6c49aa) into master (aaacce2) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #953   +/-   ##
=======================================
  Coverage   78.81%   78.81%           
=======================================
  Files         216      216           
  Lines        5272     5272           
=======================================
  Hits         4155     4155           
  Misses        864      864           
  Partials      253      253           

@cesar-rodriguez cesar-rodriguez merged commit 7fb8bb4 into tenable:master Jul 31, 2021
cesar-rodriguez pushed a commit to Rchanger/terrascan that referenced this pull request Aug 2, 2021
Adds pre-commit integration for Terrascan

Co-authored-by: mihirhasan <[email protected]>
@cesar-rodriguez cesar-rodriguez mentioned this pull request Aug 2, 2021
cesar-rodriguez pushed 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]>
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