Commit 8d7c0521 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'rf-update-brakeman-rules' into 'master'

Update brakeman rules [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!53414
parents 3e4c7f08 b2e9cb76
---
title: Update Ruby detection rules for SAST
merge_request: 53414
author:
type: changed
......@@ -66,7 +66,8 @@ brakeman-sast:
- if: $CI_COMMIT_BRANCH &&
$SAST_DEFAULT_ANALYZERS =~ /brakeman/
exists:
- 'config/routes.rb'
- '**/*.rb'
- '**/Gemfile'
eslint-sast:
extends: .sast-analyzer
......
......@@ -537,7 +537,7 @@ RSpec.describe Ci::CreatePipelineService do
it 'pull it from Auto-DevOps' do
pipeline = execute_service
expect(pipeline).to be_auto_devops_source
expect(pipeline.builds.map(&:name)).to match_array(%w[build code_quality eslint-sast secret_detection_default_branch test])
expect(pipeline.builds.map(&:name)).to match_array(%w[brakeman-sast build code_quality eslint-sast secret_detection_default_branch test])
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment