However, when the pipeline runs in my self-hosted Gitlab installation, the job secret_detection fails:
$ apt-get update -yqq
24/bin/sh: eval: line 108: apt-get: not found
26
Uploading artifacts for failed job
00:00
27Uploading artifacts...
28WARNING: gl-secret-detection-report.json: no matching files
29ERROR: No files to upload
Now the secret-detection is run, but I got an error for the quality-test:
Checking cache for develop-1...
[19]No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.
[20]Successfully extracted cache
[22]Executing "step_script" stage of the job script
[23]$ ./vendor/bin/phpstan analyse -c ci/phpstan.neon --memory-limit=-1
[24]/bin/bash: line 112: ./vendor/bin/phpstan: No such file or directory
[26]Cleaning up file based variables
[28]ERROR: Job failed: exit code 1
It seems that the prepare anchors is not getting executed.
@gdm this is most likely, because phpstan does not have execute permissions, try to add chmod +x ./vendor/bin/phpstan before the ./vendor/bin/phpstan analyse -c ci/phpstan.neon --memory-limit=-1
EDIT: actually there is no output from composer install, but I cannot see why it is not executed. maybe you are hitting a reserved word, try to change prepare to something else.