Consolidate gitlab-bot API tokens used in triage-ops
Initially discussed in the team meeting
Gitlab-bot owns 2 tokens consumed by triage-ops, namely
- Scheduled triage operations at gitlab-org/quality/triage-ops
- Reactive triage operations at gitlab-org/quality/triage-ops
But in triage-ops we have 3 environment variables defined in the CI/CD settings:
- GITLAB_API_TOKEN
- GITLAB_COM_API_TOKEN (it has the same value as i above)
- GITLAB_BOT_AUTOMATED_TRIAGE_TOKEN
I figure that I will just delete i. and keep ii. and iii. However, I discovered from bin/setup.sh that we are overriding ii with the value of iii:
- export GITLAB_COM_API_TOKEN=${GITLAB_BOT_AUTOMATED_TRIAGE_TOKEN} Since we are overriding the values, should we just stick to 1 token then? Perhaps we still want to keep 2 because we need to use a protected variable for our reactive processor? Is this correct?