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

Terrascan creates ~/.terrascan even though policy directory is supplied #1209

Closed
jerbeck opened this issue Mar 30, 2022 · 0 comments · Fixed by #1210
Closed

Terrascan creates ~/.terrascan even though policy directory is supplied #1209

jerbeck opened this issue Mar 30, 2022 · 0 comments · Fixed by #1210

Comments

@jerbeck
Copy link

jerbeck commented Mar 30, 2022

  • terrascan version: 1.31.1
  • Operating System: All

Description

Terrascan creates ~/.terrascan directory even when you have specified a policy directory for scanning purposes. It would be preferable if Terrascan could be run without always creating this directory.

What I Did

Attempted to prevent the creation of ~/.terrascan by performing the following:

  1. Initiate a local scan on some code in a local directory to get Terrascan to download policies.
  2. Copy /pkg/policies to a local directory ~/ts/policies/
  3. Delete ~/.terrascan
  4. Re-run Terrascan using -p ~/ts/policies

Expected result:
Terrascan would use the policies in the specific directory and not need to download the repository into ~/.terrascan

Actual result:
Terrascan recreated the ~/.terrascan directory even though it used the policies in the directory that was specified.

@Rchanger Rchanger linked a pull request Mar 31, 2022 that will close this issue
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 a pull request may close this issue.

1 participant