feat: add code issues workflow for listing Snyk Code issues - #157
feat: add code issues workflow for listing Snyk Code issues#157fsargent wants to merge 1 commit into
code issues workflow for listing Snyk Code issues#157Conversation
✅ 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. |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
✅ 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. |

Description
Introduces a new
code issuesworkflow (code.issues) that lists Snyk Code issues for a resolved project via the Snyk REST API.The workflow resolves a target project either by an explicit
--project-idUUID or by looking it up using--remote-repo-urland--target-reference. Once resolved, it fetches issues from the/rest/orgs/{org}/issuesendpoint, normalizes them into a consistent structure, and outputs results either as a formatted table or JSON.Key behaviours:
--ignoredflag (true,false, orall) and an optional--severity-threshold.--limit(10–100) and--allto fetch all pages automatically.coordinates[].representations[].sourceLocationstructures.A new
GetCodeIssuesFlagSet()function exposes the flag definitions, andWORKFLOWID_CODE_ISSUESregisters the workflow with the engine duringInit.Checklist
🚨After having merged, please update the
snyk-lsand CLI go.mod to pull in latest client.