Skip to content

Commit

Permalink
Fixed the project name
Browse files Browse the repository at this point in the history
Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan committed Aug 16, 2024
1 parent 5bfd10a commit a715fb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions bom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"bomFormat":"CycloneDX","specVersion":"1.5","serialNumber":"urn:uuid:25d32998-8016-481a-b086-58f67f1788bc","version":1,"metadata":{"timestamp":"2024-08-16T16:50:45Z","tools":{"components":[{"group":"@cyclonedx","name":"cdxgen","version":"10.9.2","purl":"pkg:npm/%40cyclonedx/[email protected]","type":"application","bom-ref":"pkg:npm/@cyclonedx/[email protected]","author":"OWASP Foundation","publisher":"OWASP Foundation"}]},"authors":[{"name":"OWASP Foundation"}],"lifecycles":[{"phase":"build"}],"properties":[]},"components":[],"services":[],"dependencies":[]}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const defaultCSVURL = "https://www.googleapis.com/download/storage/v1/b/ossf-cri

func main() {
app := &cli.App{
Name: "criticalprojects",
Name: "bomfactory",
Usage: "Load CSV data into SQLite and query it",
Commands: []*cli.Command{
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/sbom/sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GenerateSBOMWithCycloneDX(directory, outputFile, repo string) error {
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
defer cancel()

cmd := exec.CommandContext(ctx, "cdxgen", "-r", "-o", outputFile, "--no-install-deps", "--install-deps", "false", "--spec-version", "1.5", directory)
cmd := exec.CommandContext(ctx, "cdxgen", "-r", "-o", outputFile, "--no-install-deps", "--project-name", repo, "--install-deps", "false", "--spec-version", "1.5", directory)
fmt.Println("Executing command: for the repo", repo, cmd.String())
output, err := cmd.CombinedOutput()
if ctx.Err() == context.DeadlineExceeded {
Expand Down

0 comments on commit a715fb7

Please sign in to comment.