Skip to content

Commit 2fced42

Browse files
committed
chore: add sbom
1 parent 2112398 commit 2fced42

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/managers/cargo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use crate::errors::KeeperError;
33
use error_stack::{IntoReport, Report};
44
use std::collections::HashMap;
55
use which::which;
6+
use crate::task;
67

78
pub fn is_available() -> bool {
89
std::env::current_dir()
@@ -32,6 +33,7 @@ pub fn get_task_command_map() -> HashMap<String, String> {
3233
if cargo_bin {
3334
task_command_map.insert("start".to_string(), "cargo run".to_string());
3435
}
36+
task_command_map.insert("sbom".to_string(), "cargo-cyclonedx cyclonedx -v --format json".to_string());
3537
task_command_map
3638
}
3739

src/managers/npm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pub fn get_task_command_map() -> HashMap<String, String> {
9090
task_command_map.insert("outdated".to_string(), "npm-check -u".to_string());
9191
}
9292
}
93+
task_command_map.insert("sbom".to_string(), "npx @cyclonedx/cyclonedx-npm -o application.cdx.json".to_string());
9394
task_command_map
9495
}
9596

0 commit comments

Comments
 (0)