• Yorick Peterse's avatar
    Validate deployment SHAs and refs · 14420903
    Yorick Peterse authored
    This prevents users from creating deployments using the API while
    providing an invalid SHA or ref name. Providing invalid data for these
    fields will break certain parts of GitLab, such as the UI used for
    displaying the deployments of an environment.
    
    These changes require that we correct a variety of tests that were using
    deployments without a valid repository, or were even testing behaviour
    that would never run due to the lack of a repository.
    
    This fixes https://gitlab.com/gitlab-org/gitlab/issues/36967
    14420903
deployment-validate-sha.yml 80 Bytes