File tree 3 files changed +13
-6
lines changed
3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 15
15
uses : fluentci-io/setup-fluentci@v4
16
16
- name : Run Dagger Pipelines
17
17
run : |
18
- cp -r ../.git .
19
18
deno run -A src/dagger/list_jobs.ts
20
19
dagger functions
21
20
dagger call lint --src examples
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ DISABLE:
22
22
23
23
SHOW_ELAPSED_TIME : true
24
24
25
- FILEIO_REPORTER : true
25
+ FILEIO_REPORTER : false
26
+ REPORT_OUTPUT_FOLDER : /app/megalinter-reports
27
+ ANSIBLE_ANSIBLE_LINT_DIRECTORY : playbooks
26
28
# Uncomment if you want MegaLinter to detect errors but not block CI to pass
27
29
# DISABLE_ERRORS: true
Original file line number Diff line number Diff line change @@ -17,23 +17,29 @@ export const exclude = [];
17
17
* @function
18
18
* @description Lint files.
19
19
* @param {string | Directory | undefined } src
20
+ * @param {string } version
20
21
* @returns {Directory | string }
21
22
*/
22
23
export async function lint (
23
- src : Directory | string
24
+ src : Directory | string ,
25
+ version : string = "v7"
24
26
) : Promise < Directory | string > {
25
27
const context = await getDirectory ( src ) ;
26
28
const ctr = dag
27
29
. pipeline ( Job . lint )
28
30
. container ( )
29
- . from ( " oxsecurity/megalinter:v7" )
31
+ . from ( ` oxsecurity/megalinter:${ version } ` )
30
32
. withDirectory ( "/app" , context )
31
33
. withEnvVariable ( "DEFAULT_WORKSPACE" , "/app" )
32
- . withEnvVariable ( "REPORT_OUTPUT_FOLDER" , "megalinter-reports" )
34
+ . withEnvVariable ( "REPORT_OUTPUT_FOLDER" , "/app/megalinter-reports" )
35
+ . withEnvVariable ( "SARIF_REPORTER" , "true" )
33
36
. withWorkdir ( "/app" ) ;
34
37
35
38
await ctr . stdout ( ) ;
36
- return ctr . directory ( "./megalinter-reports" ) . id ( ) ;
39
+
40
+ console . log ( await ctr . directory ( "/app" ) . entries ( ) ) ;
41
+
42
+ return ctr . directory ( "/app/megalinter-reports" ) . id ( ) ;
37
43
}
38
44
export type JobExec = (
39
45
src : string ,
You can’t perform that action at this time.
0 commit comments