Skip to content

Add CI/CD access token section in project settings

What does this MR do?

This MR adds the "Token Access" section to the CI/CD settings for projects, allowing to enable or disable the access to the CI_JOB_TOKEN variable.

This feature is behind the ci_scoped_job_token feature flag.

How to test

  • Enable ci_scoped_job_token locally in the rails console
  • Visit a projects CI/CD settings and expand the token access section
  • Test out functionality (add, remove, toggle etc.)

Related to: #328553 (closed)

Screenshots (strongly suggested)

Disabled

Screen_Shot_2021-06-29_at_11.29.31_AM

Enabled

Screen_Shot_2021-06-29_at_1.05.02_PM

Error handling examples

Screen_Shot_2021-06-29_at_1.05.51_PM

Screen_Shot_2021-06-29_at_11.31.36_AM

Does this MR meet the acceptance criteria?

Conformity

Edited by Payton Burdette

Merge request reports