GitLab: WARNING: gl-sast-report.json: no matching files

When enabling SAST in a gitlab project you can have that kind of error at the tests part:

The yaml provided is not containing the needed part:

   name: sast
     - gl-sast-report.json
     sast: gl-sast-report.json
   when: always


GIT and BitBucket

Cloning a git repository from BitBucket can fail producing that kind of logs:

Clonage dans '.'...
remote: Counting objects: 7008, done.
remote: Compressing objects: 100% (5921/5921), done.
error: échec RPC ; curl 56 GnuTLS recv error (-110): La connexion TLS n’a pas été terminée correctement.
fetch-pack: unexpected disconnect while reading sideband packet
fatal: fin de fichier prématurée
fatal: échec de index-pack

Working solution was to force IPv4 with -4 option, like in the following example:

git clone -4 .