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 using absolute path for "source" value of resource #642

Closed
hapyharshit opened this issue Apr 7, 2021 · 1 comment · Fixed by #644
Closed

terrascan using absolute path for "source" value of resource #642

hapyharshit opened this issue Apr 7, 2021 · 1 comment · Fixed by #644
Assignees
Labels

Comments

@hapyharshit
Copy link

  • terrascan version: latest
  • Operating System: all

Description

when we generate normalize json, each resource has "source" property which is the location of the resource in the particular file.
this was working fine earlier, but now its using absolute path, which is a problem if I run terrascan in a VM, I will have wrong location of the file.

What I Did

terrascan scan -t k8s -i k8s--config-only -o json
@kanchwala-yusuf
Copy link
Contributor

Hi @hapyharshit ,
Thank you for reporting this. It seems that this is an issue only with kubernetes IaC. The behavior seems to be correct for other iac types like terraform, helm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants