File tree 1 file changed +13
-10
lines changed
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -295,15 +295,9 @@ include:
295
295
.sast-analyzer :
296
296
extends : sast
297
297
stage : test
298
- << : *rules_for_test_stage
299
298
allow_failure : true
300
299
script :
301
300
- /analyzer run
302
- rules :
303
- - if : $SAST_DISABLED
304
- when : never
305
- - if : $CI_PIPELINE_SOURCE == 'schedule'
306
- when : never
307
301
308
302
flawfinder-sast :
309
303
extends : .sast-analyzer
@@ -313,12 +307,21 @@ flawfinder-sast:
313
307
SAST_ANALYZER_IMAGE_TAG : latest
314
308
SAST_ANALYZER_IMAGE : " $SECURE_ANALYZERS_PREFIX/flawfinder:$SAST_ANALYZER_IMAGE_TAG"
315
309
rules :
310
+ - if : $SAST_DISABLED
311
+ when : never
312
+ - if : $CI_PIPELINE_SOURCE == 'schedule'
313
+ when : never
316
314
- if : $SAST_EXCLUDED_ANALYZERS =~ /flawfinder/
317
315
when : never
318
- - if : $CI_COMMIT_BRANCH
319
- exists :
320
- - ' **/*.cc'
321
- - ' **/*.h'
316
+ - when : always
322
317
323
318
semgrep-sast :
324
319
extends : .sast-analyzer
320
+ rules :
321
+ - if : $SAST_DISABLED
322
+ when : never
323
+ - if : $CI_PIPELINE_SOURCE == 'schedule'
324
+ when : never
325
+ - if : $SAST_EXCLUDED_ANALYZERS =~ /semgrep/
326
+ when : never
327
+ - when : always
You can’t perform that action at this time.
0 commit comments