No runners_token in /api/v4/projects response

Hi,

According to the Community Edition documentation here, the endpoint /api/v4/projects when not given the simple=true attribute should include a runners_token field.

However when I use the following curl command to retrieve all the projects I am either an owner or member of - this field is not present in the response:

curl --header "PRIVATE-TOKEN: <my-gitlab-api-access-token>" \
     "https://gitlab.com/api/v4/projects?&owned=true&membership=true"

Here is the same thing in the node project I'm working on

const axios = require('axios');

api = axios.create({
  baseURL: 'https://www.gitlab.com',
  headers: {'PRIVATE-TOKEN': '<my-gitlab-api-access-token>'}
});

let slug = `/api/v4/projects`;
let attr = `\?per_page\=999\&owned\=true\&membership\=true`;

return api.get(slug + attr)
  .then((projects) => {
	return projects.data;
  })
  .then((projects) => {
	console.log(projects);
  });

Here is example output of the curl command piped to json_pp and then grepping for runner. As you can see only shared_runners_enabled is present...

I can see the runner tokens through the web UI though....

curl -s --header "PRIVATE-TOKEN: <my-token>" "https://gitlab.com/api/v4/projects?&owned=true&membership=true" | json_pp | grep runner
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,
      "shared_runners_enabled" : true,

Any ideas?

Edited Sep 26, 2019 by Toby Slight
Assignee Loading
Time tracking Loading