Skip to content

Expose runners_token for group/:id API endpoint

Nacho Otal requested to merge (removed):enabling_runners_token_for_groups into master

What does this MR do?

Add runners_token to group/:id API endpoint if user has admin access to the group.

Screenshots

{
    "avatar_url": null,
    "description": "",
    "full_name": "runner-group",
    "full_path": "runner-group",
    "id": 58,
    "lfs_enabled": true,
    "name": "runner-group",
    "parent_id": null,
    "path": "runner-group",
    "projects": [],
    "request_access_enabled": false,
    "runners_token": "oBJLyYsrHtV_K2djEsES",
    "shared_projects": [],
    "visibility": "public",
    "web_url": "http://192.168.1.79:3000/groups/runner-group"
}

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Reference https://gitlab.com/gitlab-org/gitlab-ce/issues/60774

Edited by Steve Xuereb

Merge request reports