pub struct CodeScanningUploadSarifRequest {
pub commit_sha: String,
pub ref: String,
pub sarif: String,
pub checkout_uri: Option<String>,
pub started_at: Option<String>,
pub tool_name: Option<String>,
pub validate: Option<bool>,
}
Fields§
§commit_sha: String
The SHA of the commit to which the analysis you are uploading relates.
ref: String
The full Git reference, formatted as refs/heads/<branch name>
, refs/tags/<tag>
, refs/pull/<number>/merge
, or refs/pull/<number>/head
.
sarif: String
A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using gzip
and then translate the contents of the file into a Base64 encoding string. For more information, see "SARIF support for code scanning."
checkout_uri: Option<String>
The base directory used in the analysis, as it appears in the SARIF file. This property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
started_at: Option<String>
The time that the analysis run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
tool_name: Option<String>
The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the tool_guid
parameter of operations such as GET /repos/{owner}/{repo}/code-scanning/alerts
.
validate: Option<bool>
Whether the SARIF file will be validated according to the code scanning specifications. This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.
Implementations§
Trait Implementations§
Source§impl Clone for CodeScanningUploadSarifRequest
impl Clone for CodeScanningUploadSarifRequest
Source§fn clone(&self) -> CodeScanningUploadSarifRequest
fn clone(&self) -> CodeScanningUploadSarifRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for CodeScanningUploadSarifRequest
impl Default for CodeScanningUploadSarifRequest
Source§fn default() -> CodeScanningUploadSarifRequest
fn default() -> CodeScanningUploadSarifRequest
Source§impl<'de> Deserialize<'de> for CodeScanningUploadSarifRequest
impl<'de> Deserialize<'de> for CodeScanningUploadSarifRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CodeScanningUploadSarifRequest
impl PartialEq for CodeScanningUploadSarifRequest
Source§fn eq(&self, other: &CodeScanningUploadSarifRequest) -> bool
fn eq(&self, other: &CodeScanningUploadSarifRequest) -> bool
self
and other
values to be equal, and is used by ==
.