{"record":{"id":"33f9ffabe9d9466d","repo":"goharbor/harbor","slug":"only-support-specific-repository-name","errorCode":null,"errorMessage":"only support specific repository name","messagePattern":"only support specific repository name","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/reg/adapter/githubcr/adapter.go","lineNumber":152,"sourceCode":"\t}\n\treturn\n}\n\nfunc (a *adapter) FetchArtifacts(filters []*model.Filter) (resources []*model.Resource, err error) {\n\tpattern := \"\"\n\tfor _, filter := range filters {\n\t\tif filter.Type == model.FilterTypeName {\n\t\t\tpattern = filter.Value.(string)\n\t\t\tbreak\n\t\t}\n\t}\n\tvar repositories []string\n\t// if the pattern of repository name filter is a specific repository name, just returns\n\t// the parsed repositories and will check the existence later when filtering the tags\n\tif paths, ok := util.IsSpecificPath(pattern); ok {\n\t\trepositories = paths\n\t} else {\n\t\terr = errors.New(\"only support specific repository name\")\n\t\treturn\n\t}\n\n\tif len(repositories) == 0 {\n\t\treturn nil, nil\n\t}\n\n\tvar rawResources = make([]*model.Resource, len(repositories))\n\trunner := utils.NewLimitedConcurrentRunner(adp.MaxConcurrency)\n\n\tfor i, r := range repositories {\n\t\tindex := i\n\t\trepo := r\n\t\trunner.AddTask(func() error {\n\t\t\tartifacts, err := a.listArtifacts(repo, filters)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"failed to list artifacts of repository %s: %v\", repo, err)\n\t\t\t}","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/githubcr/adapter.go#L134-L170","documentation":"Error \"only support specific repository name\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/githubcr/adapter.go:152 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}