jfrog / jfrog/jfrog-cli-security
Support for Artifactory XRay V2
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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