Skip to content

Commit 9e0cd86

Browse files
mario-camposaibaars
authored andcommitted
Use path.resolve instead of path.join for sourceRoot
Thanks to @aibaars, `path.resolve()` should will nicely handle more use-cases, namely absolute paths better than `path.join()`. Co-authored-by: Arthur Baars <aibaars@github.com>
1 parent 1a5ccf1 commit 9e0cd86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/init-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ async function run() {
203203
const codeqlRam = process.env["CODEQL_RAM"] || "6500";
204204
core.exportVariable("CODEQL_RAM", codeqlRam);
205205

206-
const sourceRoot = path.join(
206+
const sourceRoot = path.resolve(
207207
getRequiredEnvParam("GITHUB_WORKSPACE"),
208208
getOptionalInput("source-root") || ""
209209
);

0 commit comments

Comments
 (0)