Skip to content

Conversation

PeterSchafer
Copy link
Contributor

Description

Extend the result metadata to keep track of the project and snapshot id.

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing

🚨After having merged, please update the snyk-ls and CLI go.mod to pull in latest client.

@PeterSchafer PeterSchafer requested review from a team as code owners September 16, 2025 12:22
Copy link

snyk-io bot commented Sep 16, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

@PeterSchafer PeterSchafer force-pushed the fix/CLI-1045_report_sarif branch from 971b25f to 4a9eaa0 Compare September 16, 2025 16:40
Comment on lines +344 to +356

if testCompleted.Results.Webui != nil {
if testCompleted.Results.Webui.Link != nil {
result.WebUiUrl = *testCompleted.Results.Webui.Link
}
if testCompleted.Results.Webui.ProjectId != nil {
result.ProjectId = testCompleted.Results.Webui.ProjectId.String()
}
if testCompleted.Results.Webui.SnapshotId != nil {
result.SnapshotId = testCompleted.Results.Webui.SnapshotId.String()
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: Will this go on like this into infinity? If so maybe we should consider making a more generic function at some point, if we don't want this code to be highly verbose.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, interesting thought. To be honest, I don't know if this will continue. AFAIK this metadata hasn't changed so far and it might change completely when we replace the test API with the dragonfly API.

@PeterSchafer PeterSchafer merged commit 985b875 into release/1.1299 Sep 17, 2025
12 checks passed
@PeterSchafer PeterSchafer deleted the fix/CLI-1045_report_sarif branch September 17, 2025 14:42
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

Successfully merging this pull request may close these issues.

2 participants