action lgtm_get_alerts { label: "Get detailed alert information" description: "Download all the alerts found by an analysis.\nUse the `Accept:` request header to specify the output media type as either CSV or [SARIF](https://lgtm.com/help/lgtm/sarif-results-file): \n\n- `application/sarif+json`: Alerts in SARIF format. If no version is specified the latest supported SARIF version is used.\n- `application/json`: Alerts in SARIF format (*deprecated*). \n If no version is specified, [SARIF 2.0.0](http://docs.oasis-open.org/sarif/sarif/v2.0/sarif-v2.0.html) \n is used for backwards compatibility.\n\n- `text/csv`: Alerts in CSV format. The `text/csv` media type has two optional parameters:\n - `charset`: determines the character encoding of the text, by default UTF-8.\n - `header`: determines whether a header row with column names is `present` or `absent`.\n The default value for this parameter is `present`.\n For example, an Accept header with value `text/csv; header=absent` \n would result in CSV output without a header row.\n \n\n\n\nTo find the analysis identifier for a commit, use the `/analyses/{project-id}/commits/{commit-id}` endpoint. For more information, see [Get analysis summary for a specific commit](https://lgtm.com/help/lgtm/api/api-v1#opIdgetAnalysisForCommit). \n" provider: lgtm method: GET path: "/analyses/{analysis-id}/alerts" encoding: json input: { type: "object" properties: { "analysis-id": { type: "string" } "excluded-files": { type: "boolean" } "sarif-version": { type: "string" } } required: ["analysis-id"] additionalProperties: false } output: { type: "object" } }