We’re using Community Build v25.1.0.102122
I think the issue is most relevant to our Azure Devop CI pipeline though, where we’re using task SonarQubeAnalyze@7 . From the log output it looks like this is version 7.1.1 and SonarScanner 5.0.1.3006
Log output (mildly sanitised the filepath) shows the issue:
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 9 source files to be parsed
##[error]ERROR: Failed to evaluate Helm file APIs/OurApi/DevOps/k8s/base/deployment.yml: Failed to resolve Helm project directory
ERROR: Failed to evaluate Helm file APIs/OurApi/DevOps/k8s/base/deployment.yml: Failed to resolve Helm project directory
INFO: 9/9 source files have been parsed
INFO: 9 source files to be analyzed
INFO: 9/9 source files have been analyzed
INFO: 9 source files to be checked
INFO: 9/9 source files have been checked
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=323ms
Can anyone explain the issue here? This only started occurring when we updated to the new version of SonarQubeAnalyze@7 (7.1.1). When on SonarQubeAnalyze@6 (6.3.4) this issue was not occurring.
The yml files that are being detected are Kubernetes deployment manifests, but we’re not using Helm at all. We are however using ‘Kustomize’ (https://kustomize.io/) to adjust the manifests for different environments, so some yml files are only partial replacements to base layer images.
Advice on what we can do to mitigate the error being reported (or what we might be doing wrong otherwise) would be welcome. Thanks