CI_JOB_TOKEN 401 API call at own bridges

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Describe what you would like to see improved:

I would like to be able to query the following URL with a $CI_JOB_TOKEN from a CI job: https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/bridges

The current result of a call against this endpoint leads to a {"message":"401 Unauthorized"} even though the user triggering the build has maintainer access to the project. Even a "guest" user account has (API) access to the URL above.

The reason for this requirement is that we would like to be able to check which child pipelines are being triggered and do some things with that information.

Edited by 🤖 GitLab Bot 🤖