Disable analyzer replaced by semgrep

This commit is contained in:
Craig Smith 2024-05-07 13:33:41 +00:00 committed by Lucas Charles
parent 036c14b9ed
commit 4852fea0ce
2 changed files with 25 additions and 55 deletions

View file

@ -3,12 +3,12 @@ include:
stages: [test, release]
ensure-brakeman-job-added:
ensure-semgrep-job-added:
image: badouralix/curl-jq
script:
- |
route="$CI_API_V4_URL/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs"
count=`curl --silent $route | jq 'map(select(.name | contains("brakeman-sast"))) | length'`
count=`curl --silent $route | jq 'map(select(.name | contains("semgrep-sast"))) | length'`
if [ "$count" != "1" ]; then
exit 1
fi