Skip to content

Commit

Permalink
fix: disable parallelism in syft
Browse files Browse the repository at this point in the history
  • Loading branch information
CherryKitten committed Nov 21, 2023
1 parent 961eb39 commit c1d9e6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/ssce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async fn main() -> Result<()> {

info!("Fetching docker images that are used in containers from docker");
let mut sources = get_docker_images().await?;
sources.push(Source::HostDirectory { path: "/".into() });
// sources.push(Source::HostDirectory { path: "/".into() });

info!("Start generating SBOMs");
let sboms = create_sboms(&config, &sources).await?;
Expand Down
3 changes: 2 additions & 1 deletion src/sbom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ async fn create_sbom(config: Config, source: Source) -> Result<(Source, Value)>
.arg("-o")
.arg("json")
.arg("--catalogers")
.arg("all");
.arg("all")
.env("SYFT_PARALLELISM", "1");

if matches!(source, Source::HostDirectory { .. }) {
debug!("we're running against a host directory, append excludes from the config file");
Expand Down

0 comments on commit c1d9e6f

Please sign in to comment.