pub struct DependabotAlert {Show 15 fields
pub auto_dismissed_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub dependency: DependabotAlertDependency,
pub dismissed_at: Option<DateTime<Utc>>,
pub dismissed_by: Option<User>,
pub dismissed_comment: Option<String>,
pub dismissed_reason: Option<DependabotAlertDismissedReason>,
pub fixed_at: Option<DateTime<Utc>>,
pub html_url: String,
pub number: i64,
pub security_advisory: DependabotAlertSecurityAdvisory,
pub security_vulnerability: DependabotAlertSecurityVulnerability,
pub state: DependabotAlertState,
pub updated_at: DateTime<Utc>,
pub url: String,
}
Expand description
A Dependabot alert.
JSON schema
{
"title": "dependabot alert",
"description": "A Dependabot alert.",
"type": "object",
"required": [
"created_at",
"dependency",
"dismissed_at",
"dismissed_by",
"dismissed_comment",
"dismissed_reason",
"fixed_at",
"html_url",
"number",
"security_advisory",
"security_vulnerability",
"state",
"updated_at",
"url"
],
"properties": {
"auto_dismissed_at": {
"description": "The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"created_at": {
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"dependency": {
"description": "Details for the vulnerable dependency.",
"type": "object",
"required": [
"manifest_path",
"package",
"scope"
],
"properties": {
"manifest_path": {
"description": "The full path to the dependency manifest file, relative to the root of the repository.",
"type": "string"
},
"package": {
"$ref": "#/definitions/dependabot-alert-package"
},
"scope": {
"description": "The execution scope of the vulnerable dependency.",
"type": [
"string",
"null"
],
"enum": [
"development",
"runtime",
null
]
}
},
"additionalProperties": false
},
"dismissed_at": {
"description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"dismissed_by": {
"oneOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
},
"dismissed_comment": {
"description": "An optional comment associated with the alert's dismissal.",
"type": [
"string",
"null"
]
},
"dismissed_reason": {
"description": "The reason that the alert was dismissed.",
"type": [
"string",
"null"
],
"enum": [
"fix_started",
"inaccurate",
"no_bandwidth",
"not_used",
"tolerable_risk",
null
]
},
"fixed_at": {
"description": "The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"html_url": {
"description": "The GitHub URL of the alert resource.",
"type": "string",
"format": "uri"
},
"number": {
"description": "The security alert number.",
"type": "integer"
},
"security_advisory": {
"description": "Details for the GitHub Security Advisory.",
"type": "object",
"required": [
"cve_id",
"cvss",
"cwes",
"description",
"ghsa_id",
"identifiers",
"published_at",
"references",
"severity",
"summary",
"updated_at",
"vulnerabilities",
"withdrawn_at"
],
"properties": {
"cve_id": {
"description": "The unique CVE ID assigned to the advisory.",
"type": [
"string",
"null"
]
},
"cvss": {
"$ref": "#/definitions/security-advisory-cvss"
},
"cwes": {
"description": "Details for the advisory pertaining to Common Weakness Enumeration.",
"type": "array",
"items": {
"$ref": "#/definitions/security-advisory-cwes"
}
},
"description": {
"description": "A long-form Markdown-supported description of the advisory.",
"type": "string"
},
"ghsa_id": {
"description": "Details for the GitHub Security Advisory.",
"type": "string"
},
"identifiers": {
"description": "Values that identify this advisory among security information sources.",
"type": "array",
"items": {
"description": "An advisory identifier.",
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"description": "The type of advisory identifier.",
"type": "string",
"enum": [
"CVE",
"GHSA"
]
},
"value": {
"description": "The value of the advisory identifer.",
"type": "string"
}
},
"additionalProperties": false
}
},
"published_at": {
"description": "The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"references": {
"description": "Links to additional advisory information.",
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"description": "The URL of the reference.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"severity": {
"description": "The severity of the advisory.",
"type": "string",
"enum": [
"low",
"medium",
"high",
"critical"
]
},
"summary": {
"description": "A short, plain text summary of the advisory.",
"type": "string"
},
"updated_at": {
"description": "The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"vulnerabilities": {
"description": "Vulnerable version range information for the advisory.",
"type": "array",
"items": {
"description": "Details pertaining to one vulnerable version range for the advisory.",
"type": "object",
"required": [
"first_patched_version",
"package",
"severity",
"vulnerable_version_range"
],
"properties": {
"first_patched_version": {
"description": "Details pertaining to the package version that patches this vulnerability.",
"type": "object",
"required": [
"identifier"
],
"properties": {
"identifier": {
"description": "The package version that patches this vulnerability.",
"type": "string"
}
},
"additionalProperties": false
},
"package": {
"$ref": "#/definitions/dependabot-alert-package"
},
"severity": {
"description": "The severity of the vulnerability.",
"type": "string",
"enum": [
"low",
"medium",
"high",
"critical"
]
},
"vulnerable_version_range": {
"description": "Conditions that identify vulnerable versions of this vulnerability's package.",
"type": "string"
}
},
"additionalProperties": false
}
},
"withdrawn_at": {
"description": "The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"additionalProperties": false
},
"security_vulnerability": {
"description": "Details pertaining to one vulnerable version range for the advisory.",
"type": "object",
"required": [
"first_patched_version",
"package",
"severity",
"vulnerable_version_range"
],
"properties": {
"first_patched_version": {
"description": "Details pertaining to the package version that patches this vulnerability.",
"type": "object",
"required": [
"identifier"
],
"properties": {
"identifier": {
"description": "The package version that patches this vulnerability.",
"type": "string"
}
},
"additionalProperties": false
},
"package": {
"$ref": "#/definitions/dependabot-alert-package"
},
"severity": {
"description": "The severity of the vulnerability.",
"type": "string",
"enum": [
"low",
"medium",
"high",
"critical"
]
},
"vulnerable_version_range": {
"description": "Conditions that identify vulnerable versions of this vulnerability's package.",
"type": "string"
}
},
"additionalProperties": false
},
"state": {
"description": "The state of the Dependabot alert.",
"type": "string",
"enum": [
"dismissed",
"fixed",
"open",
"auto_dismissed"
]
},
"updated_at": {
"description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"url": {
"description": "The REST API URL of the alert resource.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§auto_dismissed_at: Option<DateTime<Utc>>
The time that the alert was auto-dismissed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
created_at: DateTime<Utc>
The time that the alert was created in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
dependency: DependabotAlertDependency
§dismissed_at: Option<DateTime<Utc>>
The time that the alert was dismissed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
dismissed_by: Option<User>
§dismissed_comment: Option<String>
An optional comment associated with the alert’s dismissal.
dismissed_reason: Option<DependabotAlertDismissedReason>
The reason that the alert was dismissed.
fixed_at: Option<DateTime<Utc>>
The time that the alert was no longer detected and was considered fixed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
html_url: String
The GitHub URL of the alert resource.
number: i64
The security alert number.
security_advisory: DependabotAlertSecurityAdvisory
§security_vulnerability: DependabotAlertSecurityVulnerability
§state: DependabotAlertState
The state of the Dependabot alert.
updated_at: DateTime<Utc>
The time that the alert was last updated in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
url: String
The REST API URL of the alert resource.
Implementations§
Source§impl DependabotAlert
impl DependabotAlert
pub fn builder() -> DependabotAlert
Trait Implementations§
Source§impl Clone for DependabotAlert
impl Clone for DependabotAlert
Source§fn clone(&self) -> DependabotAlert
fn clone(&self) -> DependabotAlert
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DependabotAlert
impl Debug for DependabotAlert
Source§impl<'de> Deserialize<'de> for DependabotAlert
impl<'de> Deserialize<'de> for DependabotAlert
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&DependabotAlert> for DependabotAlert
impl From<&DependabotAlert> for DependabotAlert
Source§fn from(value: &DependabotAlert) -> Self
fn from(value: &DependabotAlert) -> Self
Converts to this type from the input type.
Source§impl From<DependabotAlert> for DependabotAlert
impl From<DependabotAlert> for DependabotAlert
Source§fn from(value: DependabotAlert) -> Self
fn from(value: DependabotAlert) -> Self
Converts to this type from the input type.
Source§impl Serialize for DependabotAlert
impl Serialize for DependabotAlert
Source§impl TryFrom<DependabotAlert> for DependabotAlert
impl TryFrom<DependabotAlert> for DependabotAlert
Auto Trait Implementations§
impl Freeze for DependabotAlert
impl RefUnwindSafe for DependabotAlert
impl Send for DependabotAlert
impl Sync for DependabotAlert
impl Unpin for DependabotAlert
impl UnwindSafe for DependabotAlert
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more