Some GitLab PATs cannot be input as masked variables
Summary
Some GitLab generated PATs include a hyphen, but this does not match the allowable regexp for masked variables (per #13784 (closed)).
Steps to reproduce
- Generate a new PAT that includes a hyphen
- Try to add that PAT as a masked variable
What is the current bug behavior?
When entered the UI notes "This variable will not be masked", and trying to save the variable results in "Validation failed - Variables value is invalid".
What is the expected correct behavior?
Either side of this problem could be changed, but any GitLab PATs should be allowed to be masked.
Output of checks
This bug happens on GitLab.com (but appears to be a generic issue).
Edited by Aaron Goldenthal