Skip to content

Conversation

@mnsboev
Copy link
Collaborator

@mnsboev mnsboev commented Aug 24, 2025

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • Appropriate label is added to auto generate release notes.
  • I used gofmt for formatting the code before submitting the pull request.
  • PR description is clear and concise, and it includes the proposed solution/fix.

Description
This PR introduces a new integration with SonarQube for evidence creation, enhancing the SLSA compliance capabilities of the JFrog CLI. 🛡️

A new flag, --use-sonar-predicate, has been added to the jf evd create command. When this flag is used, the CLI will:

Fetch the in-toto statement with a Sonar predicate from a SonarQube scan.

Use this statement to generate and sign a piece of evidence.

Attach the evidence to the specified build artifacts in Artifactory.

This allows users to create verifiable, signed evidence of their code quality and security scans, linking them directly to their build artifacts and strengthening their software supply chain security posture.

Usage
To create evidence using a SonarQube scan predicate, use the --use-sonar-predicate flag. You must also provide a signing key and an alias.

Example Command:

jf evd create --use-sonar-predicate --key {signing-key} --key-alias {alias} <build-name> <build-number>

@mnsboev mnsboev added the new feature Automatically generated release notes label Aug 24, 2025
@mnsboev
Copy link
Collaborator Author

mnsboev commented Aug 24, 2025

Test fail doesn't relates to the current PR

@mnsboev mnsboev force-pushed the add-sonar-evidence-integration branch from 405d932 to 0acb740 Compare August 26, 2025 07:35
@mnsboev mnsboev merged commit a1e32b5 into jfrog:main Aug 26, 2025
9 of 11 checks passed
naveenku-jfrog pushed a commit to naveenku-jfrog/jfrog-cli-artifactory that referenced this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants