From ce7d0f9b53552e0d05c61a89ee98c294759fa2b6 Mon Sep 17 00:00:00 2001 From: Ahmed Hemdan Date: Mon, 12 Jun 2023 11:07:26 +0200 Subject: [PATCH] Fix ensure-brakeman-job-added job --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1e7599..fc5d474 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,8 +8,8 @@ ensure-brakeman-job-added: script: - | route="https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs" - count=`curl --silent --header "PRIVATE-TOKEN: $API_TOKEN" $route | jq 'map(select(.name | contains("brakeman-sast"))) | length'` - if [ "$count" != "2" ]; then + count=`curl --silent $route | jq 'map(select(.name | contains("brakeman-sast"))) | length'` + if [ "$count" != "1" ]; then exit 1 fi @@ -44,4 +44,4 @@ create-release: script: echo "Creating release $CI_COMMIT_TAG" release: tag_name: $CI_COMMIT_TAG - description: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH" \ No newline at end of file + description: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH"