ci: trial the agentic Open Source fix from prodsec-orb [AG-387] - #788
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
snyk/prodsec-orb#166 is merged and released in v1.2.29, so this no longer needs a dev orb pin - the orb reference stays at @1 and picks the feature up. main already carries the prodsec-orb-runtime context, which is where REMY_LITELLM_API_KEY, REMY_LITELLM_BASE_URL, REMY_LITELLM_MODEL and REMY_GITHUB_TOKEN come from, so this is now a single parameter. When the Enhanced Gate blocks the Open Source scan the job still fails exactly as it does today, and in addition `snyk fix --agentic` runs against the blocking vulnerabilities and opens a pull request against the branch that failed. The fix step always exits 0, so it cannot turn a passing build red or mask a failure. Rebuilt on main rather than rebased: the branch's previous commits were dev-orb bumps that have no meaning now the orb is released. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ShawkyZ
force-pushed
the
feat/AG-387-trial-agentic-fix
branch
from
August 6, 2026 09:12
dfe1dd1 to
d97ada3
Compare
PR Reviewer Guide 🔍
|
basti-snyk
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trials the agentic Open Source fix from snyk/prodsec-orb#166 on this repository, matching the trials on snyk-intellij-plugin#880, snyk/cli#7054 and remy-cli-extension#147.
What changes
snyk/prodsec-orb@1@dev:3999cf4…open-source-agentic-fix-enabledtrueopen-source-scanhigh)high, stated explicitlysecurity-scanscontextsdevex_ide+ prodsec-orb-runtimeopen-source-scan: highis not a change in what blocks — it is already the orb default. It is written down because the fix is scoped by the same threshold the gate uses, so the trial's threshold should be visible rather than implicit.How it behaves
When the Enhanced Gate blocks the Open Source scan, the job still fails exactly as it does today. In addition,
snyk fix --agenticruns at the gate's own severity threshold and raises a pull request against the branch that failed. The fix step always exits 0, so it cannot turn a passing build red or mask a failure.It has already worked end to end elsewhere: snyk-intellij-plugin#881 — 4 vulnerabilities fixed across 3 files, raised as a pull request, with the blocked job still failing.
open-source-additional-argumentsis forwarded to the fix as--additional-params, so its own internal scan honours the same--exclude=mocked_datathis gate uses rather than proposing changes to mocked data.Worth knowing before merging
github-cli/installstep that runs on every build of this repository, not only blocked ones, because a CircleCI step cannot be made conditional on a runtime value. If that install fails it fails the job even when the gate passed.snyk fixruns this repository's dependency lifecycle scripts (npm ciis already part of this job) in the same job that holds the context secrets. The orb exports a repository-write GitHub token for the GitHub CLI, so those scripts can read it, alongside the Snyk token and the LLM key..snyk, build output or credential files.Reverting
The dev orb reference is mutable and expires after 90 days. This must move back to
snyk/prodsec-orb@1once #166 is released, or the orb stops resolving and blocks every pull request.Verification done
circleci config validate), which is what catches parameter errors thatcircleci orb validatealone cannot.PARAM_ENABLED: true,PARAM_SEVERITY_THRESHOLD: high,--exclude=mocked_dataforwarded, and both contexts attached.🤖 Generated with Claude Code