I thought the CI_JOB_TOKEN has the same access as the user triggering the job. With my personal access token it works, but it fails when using CI_JOB_TOKEN
curl -s --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" "https://gitlab.acme.com/api/v4/groups/70/projects" {"message":"401 Unauthorized"}
- *GitLab 13.2.4
- *Runner 13.2.1
versions:
stage: versions
script:
- 'curl -s --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" "https://gitlab.badgersystems.de/api/v4/groups/70/projects"'