Permission failed on custom CA install
Describe the bug
Custom CA install do not work for the default scanner-cli image
Expected behavior
CA install is successfull
Actual behavior
If a custom CA install is asked by the user, the job fails at the install_ca_certs with a "line 629: /tmp/ca-certificates.crt: Permission denied" on default image
Logs and/or screenshots
Executing "step_script" stage of the job script 00:01
$ ( # collapsed multi-line command
$ # BEGSCRIPT # collapsed multi-line command
$ install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"
/scripts-355868-320999839/step_script: line 629: /tmp/ca-certificates.crt: Permission denied
Uploading artifacts for failed job 00:00
Uploading artifacts...
WARNING: reports/sonar.gitlab-sast.json: no matching files. Ensure that the artifact path is relative to the working directory (/builds/dns/mondns/mondns-dns-api)
ERROR: No files to upload
Uploading artifacts...
WARNING: reports/sonar.gitlab-sast.json: no matching files. Ensure that the artifact path is relative to the working directory (/builds/XXXXXXXX)
ERROR: No files to upload
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: command terminated with exit code 1Context & Configuration
The issue was reproduced using:
- Version of the template: 5.2.1
- GitLab server(s): Self Managed
- GitLab runner(s): nothing special