Check if devfile event name is a string during workspace creation
MR: Pending <!-- NOTE: For context on MR heading, see: https://handbook.gitlab.com/handbook/engineering/devops/dev/create/remote-development/index.html#relationship-of-issues-to-mrs --> ## Description When creating a workspace, we validate the devfile and enforce certain restrictions on it. As part of that, we are checking if the command name in the events are starting with a restricted prefix. However, we cannot rely on user data. We should first check if it is a string. If not, we should append the error. We should only check if the name starts with a restricted prefix if it is a string. Else, we run into issues like this - https://new-sentry.gitlab.net/organizations/gitlab/issues/1755678/?project=3 . ## Acceptance criteria TODO: Fill out (required) - [ ] [Describe what must be achieved to complete this issue.] - [ ] [If applicable, please provide design specifications for this feature/enhancement.] - [ ] [If applicable, please list any technical requirements (performance, security, database, etc.)] ## Implementation plan TODO: Fill out or delete (optional) [Provide a high-level plan for implementation of this issue, including relevant technical and/or design details.] <!-- NOTE: Feel free to expand with more sections and headers as needed --> <!-- DO NOT TOUCH BELOW -->
issue