CAST HIGHLIGHT - GitLab/GitHub - Unsupported URL Format

When scanning a GitLab Private repository with all the necessary permissions at the repo level code scan fails with the error “Unsupported URL Format”. Same error is seen in CLI as well as Code Reader.

1.png

 

Workaround

Currently, the system only supports official GitHub or GitLab repositories, and the URL must follow one of these formats:

  • GitHub: https://github.com/... or git@github.com:...
  • GitLab: https://gitlab.com/... or git@gitlab.com:...

Any other URL format (including private/custom GitLab instances or internal repositories) will trigger an "Unsupported URL" error.

This is also mentioned in Highlight Automated Code Scan (Command Line)

 --gitUrl Github or Gitlab url of the repository to scan (e.g., https://github.com/MichaelMULLER/schoolbus.git)

 

Workaround for Unsupported Repositories

For private or custom platforms (e.g., self-hosted GitLab, etc.), we recommend the following approach:

  1. Clone the repository locally using git clone.
  2. Analyze the code using the Highlight command-line tool on the local copy.

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

Ticket

52458

 

 

Have more questions? Submit a request

Comments

Powered by Zendesk