Skip to content

Commit 2112398

Browse files
committed
chore: add sbom
1 parent 5c8096e commit 2112398

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/managers/uv.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ pub fn get_task_command_map() -> HashMap<String, String> {
2929
"build".to_string(),
3030
"uvx --from build pyproject-build --installer uv".to_string(),
3131
);
32+
task_command_map.insert(
33+
"sbom".to_string(),
34+
"uvx --from cyclonedx-bom cyclonedx-py environment .venv -o application.cdx.json"
35+
.to_string(),
36+
);
3237
task_command_map
3338
}
3439

@@ -41,9 +46,6 @@ pub fn run_task(
4146
if let Some(command_line) = get_task_command_map().get(task) {
4247
run_command_line(command_line, verbose)
4348
} else {
44-
Err(KeeperError::ManagerTaskNotFound(
45-
task.to_owned(),
46-
"uv".to_string()
47-
).into_report())
49+
Err(KeeperError::ManagerTaskNotFound(task.to_owned(), "uv".to_string()).into_report())
4850
}
4951
}

0 commit comments

Comments
 (0)