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

Failed to scan helm when python venv is in the same directory #6650

Open
budgester opened this issue Aug 13, 2024 · 0 comments
Open

Failed to scan helm when python venv is in the same directory #6650

budgester opened this issue Aug 13, 2024 · 0 comments
Labels

Comments

@budgester
Copy link
Contributor

budgester commented Aug 13, 2024

Describe the issue
When scanning the helm chart folder the venv folder should be ignored

Config

(venv) ~/src/example-helm (show-file-checkov)$ checkov --show-config
Command Line Args:   --show-config
Config File (/home/stevensm/src/example-helm/.checkov.yml):
  block-list-secret-scan:[]
  directory:         ['.']
  download-external-modules:False
  evaluate-variables:True
  external-modules-download-path:.external_modules
  framework:         ['helm']
  mask:              []
  output:            ['cli', 'junitxml']
  output-file-path:  console,results.xml
  secrets-history-timeout:12h
  secrets-scan-file-type:[]
  skip-download:     True
  skip-path:         ['venv']
  summary-position:  bottom
Defaults:
  --branch:          master
  --secrets-scan-file-type:[]
  --block-list-secret-scan:[]
  --mask:            []

Examples

Exception Trace

(venv)  ~/src/example-helm (show-file-checkov)$ checkov
2024-08-13 09:52:35,109 [MainThread  ] [WARNI]  Error processing helm dependancies for example-helm at source dir: .. Working dir: /tmp/tmp9hhjnsrh. Error details: walk.go:74: found symbolic link in path: /home/stevensm/src/example-helm/venv/bin/python resolves to /usr/bin/python3.9. Contents of linked file included and used
walk.go:74: found symbolic link in path: /home/stevensm/src/example-helm/venv/bin/python3 resolves to /usr/bin/python3.9. Contents of linked file included and used
walk.go:74: found symbolic link in path: /home/stevensm/src/example-helm/venv/bin/python3.9 resolves to /usr/bin/python3.9. Contents of linked file included and used
walk.go:74: found symbolic link in path: /home/stevensm/src/example-helm/venv/lib64 resolves to /home/stevensm/src/example-helm/venv/lib. Contents of linked file included and used

2024-08-13 09:52:37,900 [MainThread  ] [WARNI]  Failed processing helm chart example-helm at dir: .. Working dir: /tmp/tmp9hhjnsrh. Failure details: walk.go:74: found symbolic link in path: /home/stevensm/src/example-helm/venv/bin/python resolves to /usr/bin/python3.9. Contents of linked file included and used
walk.go:74: found symbolic link in path: /home/stevensm/src/example-helm/venv/bin/python3 resolves to /usr/bin/python3.9. Contents of linked file included and used
walk.go:74: found symbolic link in path: /home/stevensm/src/example-helm/venv/bin/python3.9 resolves to /usr/bin/python3.9. Contents of linked file included and used
walk.go:74: found symbolic link in path: /home/stevensm/src/example-helm/venv/lib64 resolves to /home/stevensm/src/example-helm/venv/lib. Contents of linked file included and used

Desktop (please complete the following information):

  • OS: RHEL
  • Checkov Version: 3.2.220
@budgester budgester changed the title Failed to scan helm when python venv is int eh same directory Failed to scan helm when python venv is in the same directory Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant