diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-12 06:09:55 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-12 06:09:55 +0000 |
commit | d69a7028a563640b8b205debf387c5f7139acbac (patch) | |
tree | 24356ca2d3ffd1280877e87a91e7a265e9066a19 /lib/security | |
parent | 39623d60e828f0d9e2d9c96fa5adfc420808f454 (diff) | |
download | gitlab-ce-d69a7028a563640b8b205debf387c5f7139acbac.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/security')
-rw-r--r-- | lib/security/ci_configuration/base_build_action.rb | 1 | ||||
-rw-r--r-- | lib/security/ci_configuration/dependency_scanning_build_action.rb | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/lib/security/ci_configuration/base_build_action.rb b/lib/security/ci_configuration/base_build_action.rb index e7a1b4770b9..880bfa6d61d 100644 --- a/lib/security/ci_configuration/base_build_action.rb +++ b/lib/security/ci_configuration/base_build_action.rb @@ -41,6 +41,7 @@ module Security # You can override the included template(s) by including variable overrides # SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings # Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings + # Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings # Note that environment variables can be set in several places # See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence YAML diff --git a/lib/security/ci_configuration/dependency_scanning_build_action.rb b/lib/security/ci_configuration/dependency_scanning_build_action.rb new file mode 100644 index 00000000000..3ee4ce4da62 --- /dev/null +++ b/lib/security/ci_configuration/dependency_scanning_build_action.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Security + module CiConfiguration + class DependencyScanningBuildAction < BaseBuildAction + private + + def update_existing_content! + @existing_gitlab_ci_content['include'] = generate_includes + end + + def template + return 'Auto-DevOps.gitlab-ci.yml' if @auto_devops_enabled + + 'Security/Dependency-Scanning.gitlab-ci.yml' + end + end + end +end |