-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Describe the bug
While searching for an image in git repos, github search API throws an exception if the query length is greater than 128 characters.
To Reproduce
Steps to reproduce the behavior:
- Generate an image from a repo which has a long name (preferably > 128 characters)
- Run DFIU on the docker image that gets generated from the above repo
- Notice that the search API throws an exception while looking for Dockerfiles where this image is being used.
Expected behavior
Provide a workaround to handle scenarios where the query length is greater than 128 characters.
Screenshots
Caused by: org.kohsuke.github.HttpException: {"message":"Validation Failed","errors":[{"message":"The search is longer than 128 characters.","resource":"Search","field":"q","code":"invalid"}],"documentation_url":"https://docs.github.com/enterprise/3.1/v3/search/"}
Computing Environment (please complete the following information):
- Docker or Java? Docker
- Java Runtime (if Java)
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels