Comments (6)
Internal Jira issue: AST-29883
from ast-cli.
@MAP4H have you tried --report-format json
from ast-cli.
@MAP4H have you tried --report-format json
My problem is not the format, by default i get .json format file, what i need is to get only the SAST result, but i don't see any filter to perform this action for a json format
This is what says in the documentation:
--report-pdf-options (Default: All Sections)
Specify the sections that will be included in the pdf format report.
This flag can only be used when --report-format is set as pdf.
Available sections are: Sast, Sca, Iac-Security, Api-Security, ScanSummary, ExecutiveSummary, and ScanResults.
ScanResults includes results for all scanners (IaC-Security, Sast and Sca).
from ast-cli.
@MAP4H can you filter the json results to only look at SAST engine results?
from ast-cli.
@MAP4H I am using as scripted pipeline approach to run scans. This may not pertain to your approach. However, I send my output to a temporary output file, and I can then parse it for key patterns with regex.
sh(returnStatus: true, script: "CX1CMDSCRIPT > output.txt")
def output = readFile('output.txt').trim()
def scanidValue= sh(returnStdout: true, script: '''grep -Po "(^|\s)Scan ID:\s\K[^,]+" output.txt''')
from ast-cli.
Hi @logan5735
I understand that you run ast-cli in a pipeline and you want to update the just the sast results. I suggest you add these options to your scan create command:
./cx scan create --report-format json --output-name myreport.json
cat myreport.json | jq '.results[] | select(.type == "sast")'
Thanks.
from ast-cli.
Related Issues (20)
- [BUG] 'cx configure' utility broken in Mac HOT 2
- [REQ] 'cx result' support additional filter type 'state' HOT 2
- [BUG] files or folders params seem to not working HOT 4
- [BUG] No report generated when thresholds fail the scan HOT 3
- Reporting a vulnerability HOT 1
- TEST FOR AUTOMATION HOT 2
- [REQ] Support Gitlab SAST output format (gl-sast-report.json) HOT 3
- [REQ] Get results from scan in CLI HOT 5
- [BUG] - Problem to get scan result HOT 2
- [BUG] Sarif file with the same HelpUri for all issues HOT 2
- Please add documentation for supported OS versions incl OS version numbers HOT 3
- [REQ] The PR decoration tool generates a new comment every time a new commit is made HOT 4
- test [REQ] HOT 1
- [BUG] Contributor count breaks with an NPE when encountering an empty repo. HOT 2
- [BUG] HTTP 404 Error using 'groups' parameter HOT 1
- Add sufficient support to CLI dockerimage for running the ScaResolver HOT 4
- Add gcc and ca-certificates to the docker image HOT 1
- [REQ] handle requirements.txt custom filenames HOT 2
- [BUG] Report PDF Options - ScanSummary not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ast-cli.