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

Issue with YAML and Ansible Plugins in SonarQube: Only One YAML File is Scanned and Uploaded #105

Open
samtech99 opened this issue Jul 26, 2024 · 0 comments

Comments

@samtech99
Copy link

We are experiencing an issue with the YAML and Ansible plugins in SonarQube where not all YAML files are transferred and scanned. Here are the details:

Version YAML Plugin: 1.9.1
Version Ansible Plugin: 2.5.1
Version SonarQube: 9.9.6 / 9.9.5
Ansible-lint: 24.7

Problem Description

When scanning our project, which includes several YAML files, only one file (e.g., roles/role1/tasks/main.yaml) is visible and scanned in SonarQube. The other YAML files are missing from the analysis results.
Example Folder Structure:

bash

Playbooks/file1.yaml
Playbooks/file2.yaml
...

roles/role1/tasks/main.yaml
roles/role2/tasks/main.yaml
...

Despite having the latest versions of the plugins and tools, only one YAML file is uploaded and analyzed by SonarQube.
Steps Taken

We have checked for conflicts between the YAML and Ansible plugins.
Updated to the latest versions of both plugins and SonarQube.
Configured exclusions and inclusions to ensure only relevant files are scanned.

Seeking Assistance

Has anyone else encountered this issue? What configurations or steps did you take to resolve it? Any insights or solutions would be greatly appreciated.

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

No branches or pull requests

1 participant