Skip to content

Commit

Permalink
add new version of sds
Browse files Browse the repository at this point in the history
  • Loading branch information
juli1 committed Nov 4, 2024
1 parent 49225dc commit 598af4c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/secrets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ futures = "0.3"
lazy_static = "1.5.0"

# remote
sds = { git = "https://github.com/DataDog/dd-sensitive-data-scanner.git", tag = "v0.3.0", package = "dd-sds" }
dd-sds = { git = "https://github.com/DataDog/dd-sensitive-data-scanner.git", rev = "d0b42f327147f13b277adbb86b3f525966b832ae" }
1 change: 1 addition & 0 deletions crates/secrets/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod model;

Check warning on line 1 in crates/secrets/src/lib.rs

View workflow job for this annotation

GitHub Actions / Rustfmt

Diff in /home/runner/work/datadog-static-analyzer/datadog-static-analyzer/crates/secrets/src/lib.rs
pub mod scanner;
pub mod secret_files;

2 changes: 1 addition & 1 deletion crates/secrets/src/model/secret_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2024 Datadog, Inc.

use common::model::position::Position;
use sds::MatchStatus;
use dd_sds::MatchStatus;
use serde::{Deserialize, Serialize};

#[derive(Clone, Copy, Debug, PartialEq, Hash, Eq, Serialize, Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion crates/secrets/src/model/secret_rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2024 Datadog, Inc.

use common::model::diff_aware::DiffAware;
use sds::{MatchAction, ProximityKeywordsConfig, RegexRuleConfig};
use dd_sds::{MatchAction, ProximityKeywordsConfig, RegexRuleConfig};
use serde::{Deserialize, Serialize};

const DEFAULT_LOOK_AHEAD_CHARACTER_COUNT: usize = 30;
Expand Down
2 changes: 1 addition & 1 deletion crates/secrets/src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use common::analysis_options::AnalysisOptions;
use common::model::position::Position;
use common::utils::position_utils::get_position_in_string;
use itertools::Itertools;
use sds::{RuleConfig, Scanner};
use dd_sds::{RuleConfig, Scanner};
use std::sync::Arc;

/// Build the SDS scanner used to scan all code using the rules fetched from
Expand Down

0 comments on commit 598af4c

Please sign in to comment.