Skip to content

feat: [AG-414] add studio extension to CLI - #7100

Merged
dan-arpino merged 1 commit into
mainfrom
feat/add-studio-extension
Sep 9, 2026
Merged

feat: [AG-414] add studio extension to CLI#7100
dan-arpino merged 1 commit into
mainfrom
feat/add-studio-extension

Conversation

@dan-arpino

@dan-arpino dan-arpino commented Aug 7, 2026

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?

Adding a new CLI extension for Snyk Studio. This new extension takes the existing hooks and installer that we have in snyk/studio-recipes and embeds them into the CLI, so that you can both install and run your Snyk Studio scripts directly by running CLI commands, as opposed to running random python scripts.

Where should the reviewer start?

Just some package changes adding our new cli-extension

How should this be manually tested?

you should be able to run snyk studio install and install the new hooks. We've added a bunch of comparison tests in our studio-internal repo to confirm working solutions.

Added tests to Studio Internal to test the CLI's extension:
https://github.com/snyk/studio-internal/pull/256
https://github.com/snyk/studio-internal/pull/255
https://github.com/snyk/studio-internal/pull/290

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

This is going in as experimental and not yet GA.

Risk assessment (Low | Medium | High)?

Low - should be isolated to just the new extension. No changes to existing functionality

What are the relevant tickets?

AG-411


Note

Low Risk
Additive extension registration only; no changes to existing CLI behavior beyond loading the new module.

Overview
Wires the Snyk Studio CLI extension into the private cliv2 binary so Studio commands (e.g. snyk studio install) are available alongside existing extensions.

The change adds github.com/snyk/cli-extension-studio v1.0.1 to go.mod/go.sum, registers studio.Init via core.WithAdditionalExtensions in main.go, and includes a commented local replace for developing against a sibling cli-extension-studio repo.

Reviewed by Cursor Bugbot for commit fa6ea0a. Bugbot is set up for automated code reviews on this repo. Configure here.

@snyk-io

snyk-io Bot commented Aug 7, 2026

Copy link
Copy Markdown

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.

@dan-arpino
dan-arpino force-pushed the feat/add-studio-extension branch 3 times, most recently from dba34ec to a86c413 Compare August 20, 2026 11:42
@dan-arpino
dan-arpino force-pushed the feat/add-studio-extension branch from a86c413 to fe889cf Compare August 31, 2026 19:55
@dan-arpino
dan-arpino force-pushed the feat/add-studio-extension branch 2 times, most recently from 80405f6 to e5a3a80 Compare September 8, 2026 19:38
@dan-arpino
dan-arpino marked this pull request as ready for review September 8, 2026 19:41
@dan-arpino
dan-arpino requested a review from a team as a code owner September 8, 2026 19:41
@snyk-pr-review-bot

This comment has been minimized.

@dan-arpino
dan-arpino force-pushed the feat/add-studio-extension branch from e5a3a80 to fa6ea0a Compare September 9, 2026 15:27
@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 8 relevant code sections from 6 files (average relevance: 0.93)

🤖 Repository instructions applied (from AGENTS.md)

@dan-arpino
dan-arpino enabled auto-merge September 9, 2026 15:30
@dan-arpino
dan-arpino merged commit 30f894e into main Sep 9, 2026
10 of 11 checks passed
@dan-arpino
dan-arpino deleted the feat/add-studio-extension branch September 9, 2026 17:20
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