Skip to content

New REST endpoint POST project to allowlist of CI_JOB_TOKEN

What does this MR do and why?

  • This MR works towards the another task of the issue (feature) #351740 (closed)

🛠 with at Siemens

Screenshots or screen recordings

New REST endpoint for allowlist of CI_JOB_TOKEN access settings

  • GET "api/v4/projects/:id/job_token_scope/allowlist/inbound"

Further Notes:

  • The response is paginated
  • The response contains a list of projects (basic project object)

Changelog: added

How to set up and validate locally

curl --request PATCH \
  --url http://127.0.0.1:3000/api/v4/projects/7/job_token_scope?private_token=<personal_access_token_of_project_maintainer> \
  --header 'Content-Type: application/json' \
  --data '{"target_project_id": <<id of project>>}'

TODO

  • Discuss the response of this endpoint what should it be? A link of basic project data?

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #351740 (closed)

Edited by Gerardo Navarro

Merge request reports