From 479d3fd8efaa0f4bf6f3bd049e9379923f730c39 Mon Sep 17 00:00:00 2001 From: totara-thib Date: Thu, 14 Apr 2022 16:19:08 +0200 Subject: [PATCH 1/3] ci(jobs): add linter and scan jobs --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..44e2c80 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,15 @@ +stages: + - static_tests + - dynamic_tests + +include: + # Scanning dependencies with trivy + - remote: 'https://api.r2devops.io/job/r/r2devops-bot/trivy_dependency/0.2.0.yml' + # Check source code with super_linter + - remote: 'https://api.r2devops.io/job/r/r2devops-bot/super_linter/0.2.1.yml' + # Check static vulnerabilities using sls_scan + - remote: 'https://api.r2devops.io/job/r/r2devops-bot/sls_scan/0.3.0.yml' + +# Allow sls_scan job to fails +sls_scan: + allow_failure: true -- GitLab From 1c6b759ef1f713c582dcdf678c4331daa55884ec Mon Sep 17 00:00:00 2001 From: totara-thib Date: Thu, 14 Apr 2022 16:25:29 +0200 Subject: [PATCH 2/3] ci(stage): remove unused stage --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44e2c80..d0fccad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,5 @@ stages: - static_tests - - dynamic_tests include: # Scanning dependencies with trivy -- GitLab From db2dc04aedbc10dcf368c59841fa04abca0a6578 Mon Sep 17 00:00:00 2001 From: totara-thib Date: Thu, 14 Apr 2022 16:43:42 +0200 Subject: [PATCH 3/3] ci(job): remove trivy_dependency --- .gitlab-ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d0fccad..f5dc974 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,8 +2,6 @@ stages: - static_tests include: - # Scanning dependencies with trivy - - remote: 'https://api.r2devops.io/job/r/r2devops-bot/trivy_dependency/0.2.0.yml' # Check source code with super_linter - remote: 'https://api.r2devops.io/job/r/r2devops-bot/super_linter/0.2.1.yml' # Check static vulnerabilities using sls_scan -- GitLab