Skip to content

Conversation

@nikhil2611
Copy link
Contributor

This pull request introduces a new GitHub Actions workflow stub for continuous integration (CI) on the main branch and updates the SonarQube project configuration. The main goals are to standardize CI checks using a shared workflow and to enhance SonarQube settings with improved metadata, language targeting, and documentation.

Description

This pull request introduces a new GitHub Actions workflow stub for CI on the main branch and significantly updates the SonarQube configuration. The changes improve CI/CD automation, security, and code quality analysis by centralizing and clarifying workflow parameters and enhancing SonarQube project metadata and settings.

Continuous Integration Workflow Enhancements:

  • Added .github/workflows/ci-main-pull-request-stub.yml as a reusable workflow stub to standardize CI checks on pull requests and pushes to main and chef-cli-5 branches, integrating security scans (Trivy, Trufflehog, BlackDuck Polaris), SonarQube analysis, SBOM generation, and more. The stub forwards relevant secrets and parameters to a central workflow and includes detailed documentation for each input.

SonarQube Configuration Improvements:

  • Refactored sonar-project.properties to provide clearer documentation, updated the project name to a standardized format (Chef_Chef-Agents_chef-cli), explicitly set the language to Ruby, and specified source (lib) and test (spec) directories. Additional comments guide future configuration for coverage, Rubocop, and SARIF reports.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@nikhil2611 nikhil2611 requested review from a team as code owners September 16, 2025 10:24
@nikhil2611 nikhil2611 changed the title Nikhil/enable blackduck sca Black Duck integration and CI/SonarQube updates Sep 16, 2025
@github-actions
Copy link

Simplecov Report

Covered Threshold
98.51% 90%

@sonarqube-for-infrastructure-prod

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Signed-off-by: nikhil2611 <[email protected]>
@sonarqubecloud
Copy link

@nikhil2611 nikhil2611 added the Expeditor: Skip All Used to skip all merge_actions. label Nov 13, 2025
@nikhil2611 nikhil2611 merged commit da4ace0 into main Nov 13, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Expeditor: Skip All Used to skip all merge_actions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants