Skip to content
代码片段 群组 项目
未验证 提交 5a1058b6 编辑于 作者: Brett Walker's avatar Brett Walker 提交者: GitLab
浏览文件

Merge branch 'julianthome/add-sast-estensions' into 'master'

Adding extensions (yml, yaml, properties) to SAST templates

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/180712



Merged-by: default avatarBrett Walker <bwalker@gitlab.com>
Approved-by: default avatarTiger Watson <twatson@gitlab.com>
Approved-by: default avatarMeir Benayoun <mbenayoun@gitlab.com>
Approved-by: default avatarBrett Walker <bwalker@gitlab.com>
Reviewed-by: default avatarMeir Benayoun <mbenayoun@gitlab.com>
Co-authored-by: default avatarJulian Thome <jthome@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
'Golang' | { 'main.go' => '' } | {} | %w[semgrep-sast] 'Golang' | { 'main.go' => '' } | {} | %w[semgrep-sast]
'Groovy' | { 'app.groovy' => '' } | {} | %w[spotbugs-sast] 'Groovy' | { 'app.groovy' => '' } | {} | %w[spotbugs-sast]
'Java' | { 'app.java' => '' } | {} | %w[semgrep-sast] 'Java' | { 'app.java' => '' } | {} | %w[semgrep-sast]
'Java properties' | { 'app.properties' => '' } | {} | %w[semgrep-sast]
'Javascript' | { 'app.js' => '' } | {} | %w[semgrep-sast] 'Javascript' | { 'app.js' => '' } | {} | %w[semgrep-sast]
'JSX' | { 'app.jsx' => '' } | {} | %w[semgrep-sast] 'JSX' | { 'app.jsx' => '' } | {} | %w[semgrep-sast]
'Kotlin' | { 'app.kt' => '' } | {} | %w[semgrep-sast] 'Kotlin' | { 'app.kt' => '' } | {} | %w[semgrep-sast]
......
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
'Golang' | { 'main.go' => '' } | {} | %w[semgrep-sast] 'Golang' | { 'main.go' => '' } | {} | %w[semgrep-sast]
'Groovy' | { 'app.groovy' => '' } | {} | %w[spotbugs-sast] 'Groovy' | { 'app.groovy' => '' } | {} | %w[spotbugs-sast]
'Java' | { 'app.java' => '' } | {} | %w[semgrep-sast] 'Java' | { 'app.java' => '' } | {} | %w[semgrep-sast]
'Java properties' | { 'app.properties' => '' } | {} | %w[semgrep-sast]
'Javascript' | { 'app.js' => '' } | {} | %w[semgrep-sast] 'Javascript' | { 'app.js' => '' } | {} | %w[semgrep-sast]
'JSX' | { 'app.jsx' => '' } | {} | %w[semgrep-sast] 'JSX' | { 'app.jsx' => '' } | {} | %w[semgrep-sast]
'Kotlin' | { 'app.kt' => '' } | {} | %w[semgrep-sast] 'Kotlin' | { 'app.kt' => '' } | {} | %w[semgrep-sast]
......
...@@ -197,6 +197,15 @@ semgrep-sast: ...@@ -197,6 +197,15 @@ semgrep-sast:
- '**/*.swift' - '**/*.swift'
- '**/*.m' - '**/*.m'
- '**/*.kt' - '**/*.kt'
- '**/*.properties'
- '**/application*.yml'
- '**/management*.yml'
- '**/actuator*.yml'
- '**/bootstrap*.yml'
- '**/application*.yaml'
- '**/management*.yaml'
- '**/actuator*.yaml'
- '**/bootstrap*.yaml'
## In case gitlab-advanced-sast already covers all the files that semgrep-sast would have scanned ## In case gitlab-advanced-sast already covers all the files that semgrep-sast would have scanned
- if: $CI_COMMIT_BRANCH && - if: $CI_COMMIT_BRANCH &&
$GITLAB_FEATURES =~ /\bsast_advanced\b/ && $GITLAB_FEATURES =~ /\bsast_advanced\b/ &&
...@@ -230,6 +239,15 @@ semgrep-sast: ...@@ -230,6 +239,15 @@ semgrep-sast:
- '**/*.m' - '**/*.m'
- '**/*.rb' - '**/*.rb'
- '**/*.kt' - '**/*.kt'
- '**/*.properties'
- '**/application*.yml'
- '**/management*.yml'
- '**/actuator*.yml'
- '**/bootstrap*.yml'
- '**/application*.yaml'
- '**/management*.yaml'
- '**/actuator*.yaml'
- '**/bootstrap*.yaml'
sobelow-sast: sobelow-sast:
extends: .sast-analyzer extends: .sast-analyzer
......
...@@ -250,6 +250,15 @@ semgrep-sast: ...@@ -250,6 +250,15 @@ semgrep-sast:
- '**/*.swift' - '**/*.swift'
- '**/*.m' - '**/*.m'
- '**/*.kt' - '**/*.kt'
- '**/*.properties'
- '**/application*.yml'
- '**/management*.yml'
- '**/actuator*.yml'
- '**/bootstrap*.yml'
- '**/application*.yaml'
- '**/management*.yaml'
- '**/actuator*.yaml'
- '**/bootstrap*.yaml'
## In case gitlab-advanced-sast already covers all the files that semgrep-sast would have scanned ## In case gitlab-advanced-sast already covers all the files that semgrep-sast would have scanned
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && - if: $CI_PIPELINE_SOURCE == "merge_request_event" &&
$GITLAB_FEATURES =~ /\bsast_advanced\b/ && $GITLAB_FEATURES =~ /\bsast_advanced\b/ &&
...@@ -283,6 +292,15 @@ semgrep-sast: ...@@ -283,6 +292,15 @@ semgrep-sast:
- '**/*.m' - '**/*.m'
- '**/*.rb' - '**/*.rb'
- '**/*.kt' - '**/*.kt'
- '**/*.properties'
- '**/application*.yml'
- '**/management*.yml'
- '**/actuator*.yml'
- '**/bootstrap*.yml'
- '**/application*.yaml'
- '**/management*.yaml'
- '**/actuator*.yaml'
- '**/bootstrap*.yaml'
- if: $CI_OPEN_MERGE_REQUESTS # Don't add it to a *branch* pipeline if it's already in a merge request pipeline. - if: $CI_OPEN_MERGE_REQUESTS # Don't add it to a *branch* pipeline if it's already in a merge request pipeline.
when: never when: never
# If there's no open merge request, add it to a *branch* pipeline instead. # If there's no open merge request, add it to a *branch* pipeline instead.
...@@ -308,6 +326,15 @@ semgrep-sast: ...@@ -308,6 +326,15 @@ semgrep-sast:
- '**/*.swift' - '**/*.swift'
- '**/*.m' - '**/*.m'
- '**/*.kt' - '**/*.kt'
- '**/*.properties'
- '**/application*.yml'
- '**/management*.yml'
- '**/actuator*.yml'
- '**/bootstrap*.yml'
- '**/application*.yaml'
- '**/management*.yaml'
- '**/actuator*.yaml'
- '**/bootstrap*.yaml'
## In case gitlab-advanced-sast already covers all the files that semgrep-sast would have scanned ## In case gitlab-advanced-sast already covers all the files that semgrep-sast would have scanned
- if: $CI_COMMIT_BRANCH && - if: $CI_COMMIT_BRANCH &&
$GITLAB_FEATURES =~ /\bsast_advanced\b/ && $GITLAB_FEATURES =~ /\bsast_advanced\b/ &&
...@@ -341,6 +368,15 @@ semgrep-sast: ...@@ -341,6 +368,15 @@ semgrep-sast:
- '**/*.m' - '**/*.m'
- '**/*.rb' - '**/*.rb'
- '**/*.kt' - '**/*.kt'
- '**/*.properties'
- '**/application*.yml'
- '**/management*.yml'
- '**/actuator*.yml'
- '**/bootstrap*.yml'
- '**/application*.yaml'
- '**/management*.yaml'
- '**/actuator*.yaml'
- '**/bootstrap*.yaml'
sobelow-sast: sobelow-sast:
extends: .sast-analyzer extends: .sast-analyzer
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册