Bug: Project securityScans graphql field causing 500

After the addition of Add support for cyclonedx based dependency scan... (!201034 - merged) • Gal Katz • 18.4, using the project type field securityScanners causes a 500 error. See this comment.

Example:

query securityScanners($fullPath: ID!) {
  project(fullPath: $fullPath) {
    id
    securityScanners {
      available
      enabled
      pipelineRun
      __typename
    }
    __typename
  }
}
{
  "errors": [
    {
      "name": "ServerError",
      "response": {},
      "statusCode": 500,
      "result": {
        "errors": [
          {
            "message": "Internal server error: `SecurityScanners.enabled` returned `\"CYCLONEDX\"` at `project.securityScanners.enabled.7`, but this isn't a valid value for `SecurityScannerType`. Update the field or resolver to return one of `SecurityScannerType`'s values instead.",
            "raisedAt": "/Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/schema/enum.rb:206:in `coerce_result' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:666:in `continue_field' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:802:in `block (2 levels) in resolve_list_item' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:936:in `after_lazy' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:799:in `block in resolve_list_item' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:809:in `call_method_on_directives' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:797:in `resolve_list_item' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:756:in `block in continue_field' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:747:in `each' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:747:in `continue_field' <-- /Users/bwilliams/.local/share/mise/installs/ruby/3.3.9/lib/ruby/gems/3.3.0/gems/graphql-2.5.11/lib/graphql/execution/interpreter/runtime.rb:481:in `block (2 levels) in evaluate_selection_with_resolved_keyword_args'"
          }
        ]
      },
      "message": "Response not successful: Received status code 500",
      "stack": "ServerError: Response not successful: Received status code 500\n    at throwServerError (http://gdk.local:3038/vite-dev/@fs/Users/bwilliams/gitlab-development-kit/gitlab/tmp/cache/vite/deps/chunk-OJ7OFFNK.js?v=77888f33:73:19)\n    at http://gdk.local:3038/vite-dev/@fs/Users/bwilliams/gitlab-development-kit/gitlab/tmp/cache/vite/deps/chunk-7DIN6T3K.js?v=77888f33:48:9"
    }
  ]
}
Edited by Gal Katz