jfrog / jfrog/jfrog-cli-security

Support for Artifactory XRay V2

Open
#509 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Go
Stars
13
Forks
50
Avg merge
3d 48m
Merged PRs (30d)
26

Description

Is your feature request related to a problem? Please describe.
It is currently impossible to query the results of the XRay scan without actively triggering one.
Our usecase is a CI pipeline that does:

  • build JARs
  • upload buildInfo, trigger XRay scan
  • do test
  • do static code analysis
  • retrieve XRay scan results
  • (publish to Artifactory)

Describe the solution you'd like to see
Please implement the support for the XRay V2 API, in particular the GET XRay scan result for a given build

Describe alternatives you've considered
We are currently using the JFrog CLI, but this means a change in system (gradle vs bash)

Additional context
To support asynchron operation (ie 'artifactoryPublish' as first call, then some query for the results later), add a reader for the BuildInfo that is written by artifactoryPublish (or to be precise: by ArtifactoryDeployTask).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing XRay security command entry points and the BuildInfo produced by ArtifactoryDeployTask. Review the Artifactory XRay V2 GET scan-result API and define how a later query reads that BuildInfo; done means asynchronous retrieval works without triggering a new scan.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.