mirror of
https://gitlab.com/components/secret-detection.git
synced 2025-06-29 23:18:29 +02:00
Merge branch 'server-variables' into 'main'
Use CI_ variables to allow mirroring to other gitlab instances See merge request components/secret-detection!4
This commit is contained in:
commit
ef4d34b9d0
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
include:
|
||||
component: gitlab.com/$CI_PROJECT_PATH/secret-detection@$CI_COMMIT_SHA
|
||||
component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/secret-detection@$CI_COMMIT_SHA
|
||||
|
||||
stages: [test, release]
|
||||
|
||||
|
@ -14,7 +14,7 @@ ensure-job-added:
|
|||
script:
|
||||
- echo "Expect that a job named 'secret_detection' is added to the pipeline"
|
||||
- |
|
||||
route="https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs"
|
||||
route="$CI_API_V4_URL/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs"
|
||||
count=`curl --silent $route | jq 'map(select(.name | contains("secret_detection"))) | length'`
|
||||
if [ "$count" != "1" ]; then
|
||||
exit 1
|
||||
|
@ -26,7 +26,7 @@ check-description:
|
|||
image: badouralix/curl-jq
|
||||
script:
|
||||
- |
|
||||
route="https://gitlab.com/api/v4/projects/$CI_PROJECT_ID"
|
||||
route="$CI_API_V4_URL/projects/$CI_PROJECT_ID"
|
||||
desc=`curl --silent $route | jq '.description'`
|
||||
if [ "$desc" = "null" ]; then
|
||||
echo "Description not set. Please set a projet description"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue