This commit was merged in pull request #497.
This commit is contained in:
1 parent
bdf7fa4268
commit
ece992da32
8 files changed
+531
-8
No files matched your search
@@ -234,6 +234,15 @@ pub struct Finding {
|
||||
/// repository has several; for a group, the variant all its places share.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub variant: Option<String>,
|
||||
/// Fingerprints this finding was stored under before (the line-based ones
|
||||
/// before #491), so a later scan still recognises it.
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub legacy_fingerprints: Vec<String>,
|
||||
/// What identifies the flagged code when the scanner knows it better than
|
||||
/// the line in the tree does (the matched secret of a finding from the
|
||||
/// git history); never stored.
|
||||
#[serde(skip)]
|
||||
pub fingerprint_content: Option<String>,
|
||||
#[serde(with = "super::serde_helpers::bson_datetime")]
|
||||
pub created_at: DateTime<Utc>,
|
||||
#[serde(with = "super::serde_helpers::bson_datetime")]
|
||||
@@ -282,6 +291,8 @@ impl Finding {
|
||||
status_history: Vec::new(),
|
||||
occurrences: Vec::new(),
|
||||
variant: None,
|
||||
legacy_fingerprints: Vec::new(),
|
||||
fingerprint_content: None,
|
||||
created_at: now,
|
||||
updated_at: now,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user