Skip to content

Commit a7aacd8

Browse files
committed
[megalinter] log files
1 parent 10f8fb8 commit a7aacd8

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/megalinter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ jobs:
3232
with:
3333
deno-version: v1.41
3434
- name: Publish package
35-
run: deno publish --allow-slow-types
35+
run: echo publish #deno publish --allow-slow-types
3636
working-directory: megalinter

megalinter/src/dagger/jobs.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,19 @@ export async function lint(
3131
.from(`oxsecurity/megalinter:${version}`)
3232
.withDirectory("/app", context)
3333
.withEnvVariable("DEFAULT_WORKSPACE", "/app")
34-
.withEnvVariable("REPORT_OUTPUT_FOLDER", "megalinter-reports")
34+
.withEnvVariable("REPORT_OUTPUT_FOLDER", "/megalinter-reports")
3535
.withEnvVariable("SARIF_REPORTER", "true")
3636
.withWorkdir("/app");
3737

3838
await ctr.stdout();
39-
return ctr.directory("./megalinter-reports").id();
39+
40+
console.log(await ctr.directory("/").entries());
41+
42+
console.log(await ctr.directory("/app").entries());
43+
44+
console.log(await ctr.directory("/megalinter-reports").entries());
45+
46+
return ctr.directory("/megalinter-reports").id();
4047
}
4148
export type JobExec = (
4249
src: string,

0 commit comments

Comments
 (0)