Download all the alerts found by an analysis.
Use the Accept: request header to specify the output media type as either CSV or :
-
application/sarif+json: Alerts in SARIF format. If no version is specified the latest supported SARIF version is used. -
application/json: Alerts in SARIF format (deprecated). If no version is specified, is used for backwards compatibility. -
text/csv: Alerts in CSV format. Thetext/csvmedia type has two optional parameters:charset: determines the character encoding of the text, by default UTF-8.header: determines whether a header row with column names ispresentorabsent. The default value for this parameter ispresent. For example, an Accept header with valuetext/csv; header=absentwould result in CSV output without a header row.
To find the analysis identifier for a commit, use the /analyses/{project-id}/commits/{commit-id} endpoint. For more information, see .