Repository Analysis

goharbor/harbor

An open source trusted cloud native registry project that stores, signs, and scans content.

5.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of goharbor/harbor, a Go project with 28,920 GitHub stars. SynthScan v2.0 examined 425,104 lines of code across 2912 source files, recording 2177 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 5.2 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

5.2
Adjusted Score
5.2
Raw Score
100%
Time Factor
2026-07-13
Last Push
28.9K
Stars
Go
Language
425.1K
Lines of Code
2.9K
Files
2.2K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 3MEDIUM 11LOW 2163

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2177 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block1936 hits · 1931 pts
SeverityFileLineSnippetContext
LOWtools/notary-migration-fix.sh1#!/bin/bashCOMMENT
LOWtools/copyright/header-check.sh1#!/bin/bashCOMMENT
LOWtools/copyright/header-check.sh21# 'fix' argument to automatically add headers to the missing files.COMMENT
LOWtests/integration.sh1#!/bin/bashCOMMENT
LOWtests/integration.sh201# go get github.com/dghubble/slingCOMMENT
LOWtests/ci/api_common_install.sh21#---------------Set DNS for docker v20-----------------------#COMMENT
LOWtests/test-engine-image/dockerd-entrypoint.sh1#!/bin/shCOMMENT
LOWmake/photon/db/docker-entrypoint.sh21COMMENT
LOWmake/photon/db/upgrade.sh41 cat /tmp/pg_upgrade_internal.logCOMMENT
LOW.github/workflows/codeql-analysis.yml21COMMENT
LOW.github/workflows/codeql-analysis.yml41COMMENT
LOWsrc/cmd/swagger/genyaml.go1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/cmd/standalone-db-migrator/main.go1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/cmd/exporter/main.go1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/copyright.tmpl.js1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/cypress/support/commands.ts1// ***********************************************COMMENT
LOWsrc/portal/cypress/support/commands.ts21// create various custom commands and overwriteCOMMENT
LOWsrc/portal/cypress/support/commands.ts41//COMMENT
LOWsrc/portal/cypress/support/e2e.ts1// ***********************************************************COMMENT
LOWsrc/portal/src/main.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/app.component.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/app.module.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/app.component.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/harbor-routing.module.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/index.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…pp/route-reuse-strategy/harbor-route-reuse-strategy.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…ute-reuse-strategy/harbor-route-reuse-strategy.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/license/license.component.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/license/license.component.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/license/license.module.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…c/portal/src/app/not-found/not-found.component.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/not-found/not-found.module.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/not-found/not-found.component.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/shared/shared.module.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…app/shared/directives/max-length-ext.directive.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOWsrc/portal/src/app/shared/directives/port.directive.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…/src/app/shared/directives/date-validator.directive.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…/src/app/shared/directives/max-length-ext.directive.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…ortal/src/app/shared/directives/port.directive.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…app/shared/directives/date-validator.directive.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…red/directives/scroll/scroll-section.directive.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…ared/directives/scroll/scroll-anchor.directive.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…p/shared/directives/scroll/scroll-section.directive.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…pp/shared/directives/scroll/scroll-anchor.directive.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…hared/directives/scroll/scroll-manager.service.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…app/shared/directives/scroll/scroll-manager.service.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…/app/shared/router-guard/auth-user-activate.service.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…hared/router-guard/mode-guard-activate.service.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…p/shared/router-guard/member-guard-activate.service.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…uter-guard/member-permission-guard-activate.service.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…/shared/router-guard/sign-in-guard-activate.service.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…/shared/router-guard/oidc-guard-active.service.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…ed/router-guard/sign-in-guard-activate.service.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…shared/router-guard/auth-user-activate.service.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…p/shared/router-guard/system-admin-activate.service.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…c/app/shared/router-guard/oidc-guard-active.service.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…red/router-guard/system-admin-activate.service.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…app/shared/router-guard/mode-guard-activate.service.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…red/router-guard/member-guard-activate.service.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
LOW…guard/member-permission-guard-activate.service.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
1876 more matches not shown…
Unused Imports114 hits · 114 pts
SeverityFileLineSnippetContext
LOWtools/migrate_chart/test_migrate_chart.py3CODE
LOWtools/migrate_chart/test_migrate_chart.py5CODE
LOWtools/migrate_chart/test_migrate_chart.py6CODE
LOWtools/migrate_chart/test_migrate_chart.py7CODE
LOWtests/apitests/python/test_tag_immutability.py1CODE
LOWtests/apitests/python/test_retention.py1CODE
LOW…ts/apitests/python/test_project_level_cve_allowlist.py1CODE
LOW…s/python/test_scan_image_artifact_in_public_project.py1CODE
LOWtests/apitests/python/test_scan_image_artifact.py1CODE
LOWtests/apitests/python/test_scan_image_artifact.py7CODE
LOWtests/apitests/python/test_quota_sorting.py1CODE
LOWtests/apitests/python/test_scan_data_export.py3CODE
LOWtests/apitests/python/test_user_crud.py1CODE
LOWtests/apitests/python/test_edit_project_creation.py1CODE
LOWtests/apitests/python/test_verify_metrics_enabled.py3CODE
LOWtests/apitests/python/test_push_files_by_oras.py1CODE
LOWtests/apitests/python/test_assign_role_to_ldap_group.py1CODE
LOWtests/apitests/python/test_assign_role_to_ldap_group.py7CODE
LOWtests/apitests/python/test_assign_role_to_ldap_group.py13CODE
LOWtests/apitests/python/test_add_sys_label_to_tag.py1CODE
LOWtests/apitests/python/test_banner_message.py3CODE
LOW…tests/python/test_user_limited_guest_get_repository.py1CODE
LOWtests/apitests/python/test_job_service_dashboard.py1CODE
LOW…ts/apitests/python/test_retain_image_last_pull_time.py1CODE
LOWtests/apitests/python/test_log_rotation.py1CODE
LOW…sts/apitests/python/test_system_level_stop_scan_all.py1CODE
LOW…/apitests/python/test_add_member_to_private_project.py1CODE
LOWtests/apitests/python/test_ldap_admin_role.py1CODE
LOWtests/apitests/python/test_ldap_admin_role.py4CODE
LOWtests/apitests/python/test_system_level_scan_all.py1CODE
LOWtests/apitests/python/test_tag_crud.py1CODE
LOWtests/apitests/python/test_tag_crud.py9CODE
LOWtests/apitests/python/test_tag_crud.py10CODE
LOWtests/apitests/python/test_tag_crud.py11CODE
LOWtests/apitests/python/test_tag_crud.py17CODE
LOWtests/apitests/python/test_stop_scan_image_artifact.py1CODE
LOWtests/apitests/python/test_stop_scan_image_artifact.py7CODE
LOWtests/apitests/python/test_stop_scan_image_artifact.py7CODE
LOWtests/apitests/python/test_p2p.py1CODE
LOWtests/apitests/python/test_p2p.py5CODE
LOWtests/apitests/python/test_p2p.py8CODE
LOWtests/apitests/python/test_p2p.py9CODE
LOWtests/apitests/python/test_p2p.py10CODE
LOWtests/apitests/python/test_robot_account.py1CODE
LOWtests/apitests/python/test_robot_account.py6CODE
LOW…sts/apitests/python/test_replication_from_dockerhub.py1CODE
LOW…/python/test_stop_sbom_generation_of_image_artifact.py1CODE
LOW…/python/test_stop_sbom_generation_of_image_artifact.py7CODE
LOW…/python/test_stop_sbom_generation_of_image_artifact.py7CODE
LOWtests/apitests/python/test_del_repo.py1CODE
LOW…ests/python/test_project_level_policy_content_trust.py1CODE
LOWtests/apitests/python/test_cosign_sign_artifact.py3CODE
LOWtests/apitests/python/test_referrers_api.py3CODE
LOWtests/apitests/python/test_manage_project_member.py1CODE
LOWtests/apitests/python/test_proxy_cache.py1CODE
LOWtests/apitests/python/test_proxy_cache.py15CODE
LOWtests/apitests/python/test_sys_cve_allowlists.py1CODE
LOWtests/apitests/python/test_podman_pull_push.py3CODE
LOWtests/apitests/python/test_webhook_crud.py1CODE
LOWtests/apitests/python/test_webhook_crud.py7CODE
54 more matches not shown…
Hyper-Verbose Identifiers64 hits · 74 pts
SeverityFileLineSnippetContext
LOWtests/apitests/python/test_tag_immutability.py85 def test_artifact_and_repo_is_undeletable(self):CODE
LOWtests/apitests/python/test_tag_immutability.py221 #def test_replication_disability(self):COMMENT
LOWtests/apitests/python/test_robot_account.py147 def verify_repository_pushable(self, project_access_list, system_ra_client):CODE
LOWtests/apitests/python/test_robot_account.py155 def verify_repository_unpushable(self, project_access_list, system_ra_client, expected_login_error_message = "unauthCODE
LOWtests/apitests/python/library/singularity.py10def set_singularity_login_env(user, password):CODE
LOWtests/apitests/python/library/singularity.py14def singularity_push_to_harbor(harbor_server, sif_file, project, image, tag):CODE
LOWtests/apitests/python/library/singularity.py20def push_singularity_to_harbor(from_URI, from_namespace, harbor_server, user, password, project, image, tag):CODE
LOWtests/apitests/python/library/user.py98 def update_user_role_as_sysadmin(self, user_id, IsAdmin, **kwargs):CODE
LOWtests/apitests/python/library/user.py117 def get_current_user_permissions(self, scope, relative, expect_status_code=200, expect_response_body=None, **kwargs)CODE
LOWtests/apitests/python/library/configurations.py45 def set_configurations_of_project_creation_restriction(self, project_creation_restriction, expect_status_code = 200,CODE
LOWtests/apitests/python/library/configurations.py51 def set_configurations_of_token_expiration(self, token_expiration, expect_status_code = 200, **kwargs):CODE
LOWtests/apitests/python/library/configurations.py57 def set_configurations_of_ldap(self, ldap_filter=None, ldap_group_attribute_name=None,CODE
LOWtests/apitests/python/library/configurations.py64 def set_configurations_of_audit_log_forward(self, audit_log_forward_endpoint=None, skip_audit_log_database=None, expCODE
LOWtests/apitests/python/library/configurations.py69 def set_configurations_of_retain_image_last_pull_time(self, is_skip, expect_status_code = 200, **kwargs):CODE
LOWtests/apitests/python/library/configurations.py74 def set_configurations_of_banner_message(self, message, message_type=None, closable=None, from_date=None, to_date=NoCODE
LOWtests/apitests/python/library/artifact.py143 def check_image_sbom_generation_result(self, project_name, repo_name, reference, expected_scan_status = "Success", *CODE
LOWtests/apitests/python/library/artifact.py172 def waiting_for_reference_exist(self, project_name, repo_name, reference, ignore_not_found = True, period = 60, loopCODE
LOWtests/apitests/python/library/gc.py135 def validate_deletion_success(self, gc_id, **kwargs):CODE
LOWtests/apitests/python/library/registry.py23 def get_registry_id_by_endpoint(self, endpoint, **kwargs):CODE
LOWtests/apitests/python/library/docker_api.py66def docker_manifest_push_to_harbor(index, manifests, harbor_server, username, password, cfg_file = "./tests/apitests/pytCODE
LOWtests/apitests/python/library/scan_all.py57 def wait_until_scans_all_finish(self, **kwargs):CODE
LOWtests/apitests/python/library/replication.py24 def trigger_replication_executions(self, rule_id, expect_status_code = 201, **kwargs):CODE
LOWtests/apitests/python/library/replication.py28 def get_replication_executions(self, rule_id, expect_status_code = 200, **kwargs):CODE
LOWtests/apitests/python/library/replication.py33 def create_replication_policy(self, dest_registry=None, src_registry=None, name=None, description="",CODE
LOWtests/apitests/python/library/replication.py58 def check_replication_rule_should_exist(self, check_rule_id, expect_rule_name, expect_trigger = None, **kwargs):CODE
LOWtests/apitests/python/library/retention.py110 def update_retention_add_rule(self, retention_id, selector_repository="**", selector_tag="**", with_untag="True", exCODE
LOWtests/apitests/python/library/retention.py162 def get_retention_exec_task_log(self, retention_id, exec_id, task_id, expect_status_code = 200, **kwargs):CODE
LOWtests/apitests/python/library/scan.py25 def sbom_generation_of_artifact(self, project_name, repo_name, reference, expect_status_code = 202, expect_response_CODE
LOWtests/apitests/python/library/tag_immutability.py11 def create_tag_immutability_policy_rule(self, project_id, selector_repository_decoration = "repoMatches",CODE
LOWtests/apitests/python/library/tag_immutability.py45 def list_tag_immutability_policy_rules(self, project_id, **kwargs):CODE
LOWtests/apitests/python/library/tag_immutability.py57 def update_tag_immutability_policy_rule(self, project_id, rule_id, selector_repository_decoration = None,CODE
LOWtests/apitests/python/library/robot.py120 def update_system_robot_account(self, robot_id, robot_name, robot_account_Permissions_list, disable = None, expect_sCODE
LOWtests/apitests/python/library/robot.py126 def refresh_robot_account_secret(self, robot_id, robot_new_sec, expect_status_code = 200, **kwargs):CODE
LOWtests/apitests/python/library/scan_stop.py27 def stop_sbom_generation_of_artifact(self, project_name, repo_name, reference, expect_status_code = 202, expect_respCODE
LOWtests/apitests/python/library/scan_data_export.py13 def get_scan_data_export_execution_list(self, expect_status_code=200, expect_response_body=None, **kwargs):CODE
LOWtests/apitests/python/library/scan_data_export.py24 def get_scan_data_export_execution(self, execution_id, expect_status_code=200, expect_response_body=None, **kwargs):CODE
LOWtests/apitests/python/library/repository.py44def push_self_build_image_to_project(project_name, registry, username, password, image, tag, size=2, expected_login_erroCODE
LOWtests/apitests/python/library/repository.py53def push_special_image_to_project(project_name, registry, username, password, image, tags=None, size=1, expected_login_eCODE
LOWtests/apitests/python/library/repository.py60def push_local_image_to_project(registry, username, password, original_image, original_tag, target_image, target_tag):CODE
LOWtests/apitests/python/library/project.py11def is_member_exist_in_project(members, member_user_name, expected_member_role_id = None):CODE
LOWtests/apitests/python/library/project.py157 def check_project_member_not_exist(self, project_id, member_user_name, **kwargs):CODE
LOWtests/apitests/python/library/project.py164 def check_project_members_exist(self, project_id, member_user_name, expected_member_role_id = None, **kwargs):CODE
LOWtests/apitests/python/library/project.py171 def update_project_member_role(self, project_id, member_id, member_role_id, expect_status_code = 200, **kwargs):CODE
LOWtests/robot-cases/Group3-Upgrade/util.py4def convert_int_to_readable_file_size(file_size):CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py255 def update_project_setting_metadata(self, project, public, contenttrust, preventrunning, preventseverity, scanonpushCODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py292 def update_project_setting_allowlist(self, project, reuse_sys_cve_whitelist, cve_id_list, **kwargs):CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py326 def update_interrogation_services(self, cron, **kwargs):CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py362 def add_project_robot_account(self, project, robot_account, **kwargs):CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py483 def add_tag_immutability_rule(self, project, tag_immutability_rule, **kwargs):CODE
LOWmake/photon/prepare/test_purgeuploads.py47 def test_validate_config_invalid_format(self):CODE
LOWmake/photon/prepare/test_purgeuploads.py58 def test_validate_config_invalid_format(self):CODE
LOWmake/photon/prepare/test_purgeuploads.py69 def test_validate_config_disabled_invalid_format(self):CODE
LOWmake/photon/prepare/test_purgeuploads.py79 def test_validate_config_invalid_string(self):CODE
LOWmake/photon/prepare/utils/registry.py83def get_storage_provider_info(provider_name, provider_config):CODE
LOWmake/photon/prepare/utils/nginx.py83def copy_nginx_location_configs_if_exist(src_config_dir, dst_config_dir, filename_pattern):CODE
LOWmake/photon/prepare/utils/nginx.py87 def add_additional_location_config(src, dst):CODE
LOWsrc/portal/src/app/shared/units/utils.ts168export function buildHttpRequestOptionsWithObserveResponse(CODE
LOWsrc/portal/src/app/shared/units/utils.ts961export function getPageSizeFromLocalStorage(CODE
LOWsrc/portal/src/app/shared/units/utils.ts979export function setPageSizeToLocalStorage(key: string, pageSize: number) {CODE
LOWsrc/portal/src/app/shared/units/utils.ts994export function getHiddenArrayFromLocalStorage(CODE
4 more matches not shown…
Excessive Try-Catch Wrapping24 hits · 29 pts
SeverityFileLineSnippetContext
LOWtools/migrate_chart/migrate_chart.py79 except Exception as e:CODE
LOWtools/migrate_chart/migrate_chart.py134 except Exception as e:CODE
MEDIUMtests/apitests/python/testutils.py80 print("Error message:", each_err_msg)CODE
LOWtests/apitests/python/library/system.py80 except Exception as e:CODE
LOWtests/apitests/python/library/docker_api.py111 except Exception as err:CODE
LOWtests/apitests/python/library/docker_api.py140 except Exception as err:CODE
LOWtests/apitests/python/library/docker_api.py180 except Exception as err:CODE
LOWtests/apitests/python/library/docker_api.py227 except Exception as err:CODE
LOWtests/apitests/python/library/oras.py42 except Exception as e:CODE
LOWtests/apitests/python/library/oras.py57 except Exception as e:CODE
MEDIUMtests/apitests/python/library/oras.py35def oras_push_cmd(harbor_server, project, repo, tag):CODE
MEDIUMtests/apitests/python/library/oras.py49def oras_pull(harbor_server, user, password, project, repo, tag):CODE
LOWtests/apitests/python/library/repository.py99 except Exception as e:CODE
LOWtests/apitests/python/library/base.py99 except Exception:CODE
LOWtests/apitests/python/library/base.py144 except Exception as e:CODE
MEDIUMtests/apitests/python/library/base.py95def _get_id_from_header(header):CODE
MEDIUMtests/apitests/python/library/base.py139def run_command_with_popen(command):CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py131 except Exception:CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py610 except Exception as e:CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py674 except Exception as e:CODE
LOWmake/photon/prepare/utils/misc.py98 except Exception as e:CODE
LOWmake/photon/prepare/utils/configs.py68 except Exception as e:CODE
LOWmake/photon/prepare/utils/migration.py36 except Exception as e:CODE
LOWmake/photon/prepare/commands/prepare.py36 except Exception as e:CODE
Cross-Language Confusion3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/apitests/python/test_podman_pull_push.py63 podman.push("{}:{}".format(self.source_image, self.source_tag), "{}/{}/{}:{}".format(harbor_server, project_nameCODE
HIGHtests/apitests/python/library/docker_api.py179 ret = self.DCLIENT.push(harbor_registry, tag)CODE
HIGHtests/apitests/python/library/docker_api.py223 ret = self.DCLIENT.push(repo)CODE
Deep Nesting12 hits · 12 pts
SeverityFileLineSnippetContext
LOWtools/migrate_chart/migrate_chart.py110CODE
LOWtests/apitests/python/library/artifact.py115CODE
LOWtests/apitests/python/library/artifact.py143CODE
LOWtests/apitests/python/library/project.py11CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py102CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py174CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py272CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py292CODE
LOWtests/robot-cases/Group3-Upgrade/prepare.py362CODE
LOWmake/photon/prepare/models.py186CODE
LOWmake/photon/prepare/utils/configs.py101CODE
LOWmake/photon/prepare/utils/registry.py44CODE
AI Slop Vocabulary5 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMsrc/controller/scan/base_controller.go449 // for controller to capture the stop flag, leverage the key recycledCOMMENT
MEDIUMsrc/controller/tag/controller.go228 // in order to leverage the signature and immutable status checkCOMMENT
LOWsrc/pkg/chart/testdata/harbor-schema2/values.yaml181 # it. To disable redirects, simply set `disableredirect` to `true` instead.COMMENT
LOWsrc/pkg/chart/testdata/harbor-schema1/values.yaml181 # it. To disable redirects, simply set `disableredirect` to `true` instead.COMMENT
MEDIUMsrc/pkg/scan/util.go75 // TODO to leverage the artifactType of distribution spec v1.1 to specify the sbom type.COMMENT
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWtools/copyright/header-check.sh23# Check if headers are fine:COMMENT
LOWsrc/pkg/chart/testdata/harbor-schema2/values.yaml2 # Set how to expose the service. Set the type as "ingress", "clusterIP", "nodePort" or "loadBalancer"COMMENT
LOWsrc/pkg/chart/testdata/harbor-schema2/values.yaml135 # Set it to "-" to disable dynamic provisioningCOMMENT
LOWsrc/pkg/chart/testdata/harbor-schema1/values.yaml2 # Set how to expose the service. Set the type as "ingress", "clusterIP", "nodePort" or "loadBalancer"COMMENT
LOWsrc/pkg/chart/testdata/harbor-schema1/values.yaml135 # Set it to "-" to disable dynamic provisioningCOMMENT
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsrc/pkg/chart/testdata/harbor-schema2/values.yaml119# For storing images and charts, you can also use "azure", "gcs", "s3",COMMENT
MEDIUMsrc/pkg/chart/testdata/harbor-schema1/values.yaml119# For storing images and charts, you can also use "azure", "gcs", "s3",COMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/apitests/python/test_security_hub.py151CODE
LOWtests/apitests/python/library/registry.py10CODE
LOWtests/apitests/python/library/replication.py33CODE
LOWtests/apitests/python/library/preheat.py12CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…erability-summary/vulnerability-summary.component.html98 <div class="placeholder">CODE
LOWsrc/server/middleware/security/session_test.go49 Email: "admin@example.com",CODE
LOWsrc/controller/p2p/preheat/enforcer_test.go160 return "fake-token", nilCODE
LOWsrc/controller/artifact/processor/cnab/cnab_test.go77 "name": "Jane Doe",CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMmake/pushimage.sh102# ---------------------------COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/pkg/reg/adapter/tencentcr/artifact_registry_test.go96 // TODO: Add test cases.COMMENT
LOWsrc/pkg/reg/adapter/tencentcr/artifact_registry_test.go141 // TODO: Add test cases.COMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/lib/retry/retry.go102// NOTE: This function will use exponential backoff and jitter for retrying, seeCOMMENT