Skip to content

Commit 2371a23

Browse files
authored
Merge pull request #393 from kosli-dev/update-sonar-integration-docs-for-dot-notation
Add info on using dot-notation and providing git commit SHA to sonar …
2 parents 0bc75da + ac26dc5 commit 2371a23

File tree

1 file changed

+3
-1
lines changed
  • docs.kosli.com/content/integrations

1 file changed

+3
-1
lines changed

docs.kosli.com/content/integrations/sonar.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ $ sonar scanner \
7474
- `sonar.analysis.kosli_trail=<YourTrailName>`
7575
- The name of the Trail to attest the scan results. If a Trail does not already exist with the given name it is created. If no Trail name is provided, the revision ID of the Sonar project (typically defaulted to the Git SHA) is used as the name.
7676
- `sonar.analysis.kosli_attestation=<YourAttestationName>`
77-
- The name you want to give to the attestation. If not provided, a default name "sonar" is used.
77+
- The name you want to give to the attestation. If not provided, a default name "sonar" is used. If using dot-notation (of the form `<YourTargetArtifact.YourAttestationName>`), either the artifact fingerprint or git commit is also required (see below).
78+
- `sonar.analysis.kosli_git_commit=<GitCommitSHA>`
79+
- The git commit for the attestation. If not provided the revision ID of the Sonar project is used (provided it has the correct format for a git SHA).
7880
- `sonar.analysis.kosli_artifact_fingerprint=<YourArtifactFingerprint>`
7981
- The fingerprint of the artifact you want the attestation to be attached to. Requires that the artifact has already been reported to Kosli.
8082
- `sonar.analysis.kosli_flow_description=<DescriptionOfYourKosliFlow>`

0 commit comments

Comments
 (0)