Skip to content

feat: add project tags for code test report flow#6694

Open
apzuk3 wants to merge 1 commit intomainfrom
feat/parse-project-tags-for-code-report
Open

feat: add project tags for code test report flow#6694
apzuk3 wants to merge 1 commit intomainfrom
feat/parse-project-tags-for-code-report

Conversation

@apzuk3
Copy link
Copy Markdown

@apzuk3 apzuk3 commented Mar 31, 2026

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
  • 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?

Where should the reviewer start?

How should this be manually tested?

What's the product update that needs to be communicated to CLI users?

@apzuk3 apzuk3 requested review from a team as code owners March 31, 2026 10:32
@snyk-io
Copy link
Copy Markdown

snyk-io bot commented Mar 31, 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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2026

Warnings
⚠️

Please make changes to snyk help text in Gitbook. Changes will be automatically synchronised to Snyk CLI as a scheduled PR.
For more information, see: help/README.md.

Generated by 🚫 dangerJS against de9a766

@apzuk3 apzuk3 force-pushed the feat/parse-project-tags-for-code-report branch from 8f2754d to 228e5b6 Compare March 31, 2026 10:35
@snyk-pr-review-bot

This comment has been minimized.

@snyk-pr-review-bot

This comment has been minimized.

@snyk-pr-review-bot

This comment has been minimized.

@apzuk3 apzuk3 changed the title Feat/parse project tags for code report feat: add project tags for code test report flow Mar 31, 2026
Users can pass --project-tags or --tags with snyk code test --report so file-based uploads include tag metadata on the project. Updates code-test help, bumps @snyk/code-client for ReportOptions.tags, adds unit tests, and declares project-tags on Options.
@apzuk3 apzuk3 force-pushed the feat/parse-project-tags-for-code-report branch from 1a01ea9 to de9a766 Compare March 31, 2026 11:14
@snyk-pr-review-bot
Copy link
Copy Markdown

PR Reviewer Guide 🔍

🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Layering Violation 🟡 [minor]

The core library logic in analysis.ts (located in src/lib) now imports generateTags from the CLI command directory (src/cli/commands/monitor). This creates a dependency from the library layer onto the CLI layer, which is an architectural regression. This can lead to circular dependencies and issues when using Snyk as a programmatic library where CLI components may not be initialized or present.

import { generateTags } from '../../../cli/commands/monitor';
📚 Repository Context Analyzed

This review considered 10 relevant code sections from 7 files (average relevance: 0.53)


Example: `--remote-repo-url=https://gitlab.com/example/project` will create a target for given URL and on the UI it would be visible as `/example/project/` .

### `--project-tags=<KEY>=<VALUE>[,<KEY>=<VALUE>]...`
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.

Issue: Please see this doc. The help contents is currently curated in gitbook and synchronized with the CLI automatically

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