Skip to content

Commit

Permalink
Merge pull request #34 from ShiftLeftSecurity/olof/fix/can-not-run-lo…
Browse files Browse the repository at this point in the history
…cal-gradle-wrapper

fix not being able to run local Gradle wrapper
  • Loading branch information
Ferada authored May 3, 2024
2 parents d3efcd7 + 429cfdf commit 6c7a601
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bin/cdxgen
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ let options = {
deterministicForTests: args.deterministicForTests,
};

let filePath = args._[0] || ".";
let filePath = path.resolve(args._[0] || ".");

/**
* Method to start the bom creation process
Expand Down
16 changes: 8 additions & 8 deletions utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,23 +188,23 @@ test("get py metadata", async () => {
const data = await utils.getPyMetadata([
{
group: "",
name: "Flask",
version: "1.1.0",
name: "Django",
version: "5.0.4",
},
false,
]);
expect(data).toEqual([
{
_integrity:
"sha256-a31adc27de06034c657a8dc091cc5fcb0227f2474798409bff0e9674de31a026",
description: "A simple framework for building complex web applications.",
"sha256-916423499d75d62da7aa038d19aef23d23498d8df229775eb0a6309ee1013775",
description: "A high-level Python web framework that encourages rapid development and clean, pragmatic design.",
group: "",
homepage: {
url: "https://palletsprojects.com/p/flask",
url: "https://www.djangoproject.com/",
},
license: "BSD-3-Clause",
name: "Flask",
version: "1.1.0",
name: "Django",
version: "5.0.4",
},
]);
});
Expand Down Expand Up @@ -457,7 +457,7 @@ test("get repo license", async () => {
"https://github.com/ShiftLeftSecurity/sast-scan"
);
expect(license).toEqual({
id: "GPL-3.0-or-later",
id: "Apache-2.0",
url: "https://github.com/ShiftLeftSecurity/sast-scan/blob/master/LICENSE",
});

Expand Down

0 comments on commit 6c7a601

Please sign in to comment.