API returns 401 via gitlab-runner but not testing from local box
Description of the problem
When making a curl call from local box to gitlab repo via my personal access token, the expected JSON response comes back with 200 as expected.
The same curl call via gitlab-runner in a build pipeline is returning 401. curl --location --header 'JOB-TOKEN: xxxxxxxxxxxxxxxxxxxx' 'https://<SECRET_PRIVATE_SERVER>/api/v4/projects/5309/jobs?scope[]=pending&scope[]=running'
response: {"message":"401 Unauthorized"}
more info on curl version: curl --version get curl version curl 7.61.1 (x86_64-alpine-linux-musl) libcurl/7.61.1 LibreSSL/2.0.0 zlib/1.2.11 libssh2/1.8.0 nghttp2/1.32.0 Release-Date: 2018-09-05 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy
Which Group/Project (with full path) is experiencing the issue?
Approximate date/time when the error occurred.
Dec 9 2018
Describe what you were doing right before the issue occurred.
git commit and git push