File tree Expand file tree Collapse file tree 4 files changed +63
-1
lines changed
Expand file tree Collapse file tree 4 files changed +63
-1
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,15 @@ include:
2828 - 'https://raw.githubusercontent.com/move-elevator/gitlab-ci-templates/main/test/test-prod-codeception.yaml'
2929 - 'https://raw.githubusercontent.com/move-elevator/gitlab-ci-templates/main/cache/cache-feature-warmup.yaml'
3030 - 'https://raw.githubusercontent.com/move-elevator/gitlab-ci-templates/main/cache/cache-prod-warmup.yaml'
31+ - 'https://raw.githubusercontent.com/move-elevator/gitlab-ci-templates/main/security/security-composer-check-scheduled.yaml'
32+ - 'https://raw.githubusercontent.com/move-elevator/gitlab-ci-templates/main/security/security-npm-check-scheduled.yamll'
3133
3234#-----------------------------------------------------------------------------------------------------------------------
3335# CONFIGURATION (overrides)
3436#-----------------------------------------------------------------------------------------------------------------------
3537variables:
3638 BUILD_COMPOSER_VERSION: "2.8"
3739 BUILD_NODE_VERSION: "22"
38- FEATURE_BRANCH_NAME_REGEX: '^JIRA-.*$'
3940 # SSH configuration
4041 SSH_USER_STAGE:
4142 SSH_HOST_STAGE:
Original file line number Diff line number Diff line change @@ -111,6 +111,17 @@ Includes:
111111- ` cache/cache-feature-warmup.yaml`
112112- ` cache/cache-prod-warmup.yaml`
113113
114+ # ## Security
115+
116+ Run security checks using `audit` tools.
117+
118+ Includes :
119+ - ` security/security-composer-check-scheduled.yaml`
120+ - ` security/security-npm-check-scheduled.yaml`
121+
122+ > [!NOTE]
123+ > Needs to be scheduled in GitLab-CI.
124+
114125# # ⭐ License
115126
116127This project is licensed under [GNU General Public License 3.0 (or later)](LICENSE).
Original file line number Diff line number Diff line change 1+ # Purpose:
2+ # Analyze job for scanning for security vulnerabilities running within a gitlab schedule
3+ #
4+ # Dependency:
5+ # Deployer task "security:check:composer"
6+ #
7+ security:composer:check:scheduled :
8+ stage : analyse
9+ extends :
10+ - .base-schedule
11+ dependencies : [ ]
12+ cache :
13+ key : security-$CI_JOB_NAME-$CI_COMMIT_REF_NAME
14+ paths :
15+ - vendor/xima/xima-deployer-tools/deployer/security/
16+ variables :
17+ GIT_STRATEGY : fetch
18+ script :
19+ - !reference [.check-deployment-dependencies, script]
20+ - vendor/bin/dep security:check:composer local --notify $DEPLOYER_CONFIG_ADDITIONAL_OPTION
21+ rules :
22+ - if : $CI_JOB_NAME == $SCHEDULE_TASK_NAME
23+ when : always
24+ - when : never
25+ resource_group : $CI_COMMIT_REF_NAME
Original file line number Diff line number Diff line change 1+ # Purpose:
2+ # Analyze job for scanning for security vulnerabilities running within a gitlab schedule
3+ #
4+ # Dependency:
5+ # Deployer task "security:check:npm"
6+ #
7+ security:npm:check:scheduled :
8+ stage : analyse
9+ extends :
10+ - .base-schedule
11+ dependencies : [ ]
12+ cache :
13+ key : security-$CI_JOB_NAME-$CI_COMMIT_REF_NAME
14+ paths :
15+ - vendor/xima/xima-deployer-tools/deployer/security/
16+ variables :
17+ GIT_STRATEGY : fetch
18+ script :
19+ - !reference [.check-deployment-dependencies, script]
20+ - vendor/bin/dep security:check:npm local --notify $DEPLOYER_CONFIG_ADDITIONAL_OPTION
21+ rules :
22+ - if : $CI_JOB_NAME == $SCHEDULE_TASK_NAME
23+ when : always
24+ - when : never
25+ resource_group : $CI_COMMIT_REF_NAME
You can’t perform that action at this time.
0 commit comments