Skip to content

feat: include workspace in output of --print-effective-graph#6727

Open
james-snyk wants to merge 1 commit intomainfrom
feat/print-workspace
Open

feat: include workspace in output of --print-effective-graph#6727
james-snyk wants to merge 1 commit intomainfrom
feat/print-workspace

Conversation

@james-snyk
Copy link
Copy Markdown
Contributor

Pull Request Submission Checklist

  • Follows CONTRIBUTING guidelines
  • Commit messages
    are release-note ready, emphasizing
    what was changed, not how.
  • Includes detailed description of changes
  • Contains risk assessment (Low | Medium | High)
  • Highlights breaking API changes (if applicable)
  • Links to automated tests covering new functionality
  • Includes manual testing instructions (if necessary)
  • Updates relevant GitBook documentation (PR link: ___)
  • Includes product update to be announced in the next stable release notes

What does this PR do?

This PR adds workspace as an optional output property to the JSONL payloads of snyk test --print-effective-graph|--print-effective-graph-with-errors. This is so we can produce dep-graphs plus exhaustive plugin metadata in cli-extension-dep-graph, to then use it for test and monitor migration to the Unified Test API.

@james-snyk james-snyk requested review from a team as code owners April 15, 2026 11:31
@snyk-io
Copy link
Copy Markdown

snyk-io bot commented Apr 15, 2026

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

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@james-snyk james-snyk force-pushed the feat/print-workspace branch 2 times, most recently from 953e0f8 to ab82347 Compare April 15, 2026 12:10
Comment thread src/lib/snyk-test/common.ts Outdated
};

// Only add workspace field if it's a workspace project
if (workspace) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not sure the if is needed, if it's undefined it will be dropped from the JSONL anyway.

@snyk-pr-review-bot

This comment has been minimized.

@james-snyk james-snyk force-pushed the feat/print-workspace branch from ab82347 to ed6a194 Compare April 15, 2026 12:39
@snyk-pr-review-bot

This comment has been minimized.

@snyk-pr-review-bot

This comment has been minimized.

@snyk-pr-review-bot
Copy link
Copy Markdown

PR Reviewer Guide 🔍

🧪 PR contains tests
🔒 No security concerns identified
⚡ No major issues detected
📚 Repository Context Analyzed

This review considered 11 relevant code sections from 6 files (average relevance: 0.95)

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