Skip to content

Commit

Permalink
Update the comment
Browse files Browse the repository at this point in the history
Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan committed Aug 21, 2024
1 parent 69de380 commit 0a4fb5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sbom/sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GenerateSBOMWithCycloneDX(directory, outputFile, repo string) error {
// Generate the output file name by replacing slashes with underscores and appending .json extension
escapedRepo := strings.ReplaceAll(repo, "/", "_")
outputFileName := fmt.Sprintf("%s.json", escapedRepo)
// Create a context with a 5-minute timeout
// Create a context with a 2-minute timeout
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
defer cancel()

Expand Down

0 comments on commit 0a4fb5f

Please sign in to comment.