AI Slop Code RIsk Monitor

goharbor/harbor

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

5.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for goharbor/harbor, a Go project with 29,528 GitHub stars. SynthScan examined 441,454 lines of code across 2957 source files, recording 2224 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 5.1 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

5.1
Adjusted Signal
5.1
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
29.5K
Stars
Go
Language
441.5K
Lines of Code
3.0K
Files
2.2K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 21.1/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 2075 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.5/100 · LOW

Are imports declared and package/API names verified? 122 finding(s).

Agent Over-Engineering Ratio 1.3/100 · LOW

Are wrappers, guards, and repeated structures necessary? 97 finding(s).

PR Review Velocity Impact 22.6/100 · LOW

Which changes need focused human review? 2224 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 4MEDIUM 11LOW 2209

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 2224 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block1978 hits · 1971 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.yml41 #- name: AutobuildCOMMENT
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
LOW…rtal/src/app/shared/pipes/harbor-datetime.pipe.spec.ts1// Copyright Project Harbor AuthorsCOMMENT
1918 more matches not shown…
Unused Imports115 hits · 115 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_signature_inheritance.py3CODE
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
55 more matches not shown…
Hyper-Verbose Identifiers66 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/apitests/python/test_tag_immutability.py85 def test_artifact_and_repo_is_undeletable(self):CODE
LOWtests/apitests/python/test_tag_immutability.py233 #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/test_proxy_cache.py159 def do_validate_proxy_cache_filter(self, registry_type="harbor"):CODE
LOW⚡tests/apitests/python/library/singularity.py10def set_singularity_login_env(user, password):CODE
LOW⚡tests/apitests/python/library/singularity.py14def singularity_push_to_harbor(harbor_server, sif_file, project, image, tag):CODE
LOW⚡tests/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
LOW⚡tests/apitests/python/library/configurations.py45 def set_configurations_of_project_creation_restriction(self, project_creation_restriction, expect_status_code = 200,CODE
LOW⚡tests/apitests/python/library/configurations.py51 def set_configurations_of_token_expiration(self, token_expiration, expect_status_code = 200, **kwargs):CODE
LOW⚡tests/apitests/python/library/configurations.py57 def set_configurations_of_ldap(self, ldap_filter=None, ldap_group_attribute_name=None,CODE
LOW⚡tests/apitests/python/library/configurations.py64 def set_configurations_of_audit_log_forward(self, audit_log_forward_endpoint=None, skip_audit_log_database=None, expCODE
LOW⚡tests/apitests/python/library/configurations.py69 def set_configurations_of_retain_image_last_pull_time(self, is_skip, expect_status_code = 200, **kwargs):CODE
LOW⚡tests/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.py153 def check_image_sbom_generation_result(self, project_name, repo_name, reference, expected_scan_status = "Success", *CODE
LOWtests/apitests/python/library/artifact.py182 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
LOW⚡tests/apitests/python/library/replication.py24 def trigger_replication_executions(self, rule_id, expect_status_code = 201, **kwargs):CODE
LOW⚡tests/apitests/python/library/replication.py28 def get_replication_executions(self, rule_id, expect_status_code = 200, **kwargs):CODE
LOW⚡tests/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
LOW⚡tests/apitests/python/library/repository.py44def push_self_build_image_to_project(project_name, registry, username, password, image, tag, size=2, expected_login_erroCODE
LOW⚡tests/apitests/python/library/repository.py53def push_special_image_to_project(project_name, registry, username, password, image, tags=None, size=1, expected_login_eCODE
LOW⚡tests/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
LOW⚡tests/apitests/python/library/project.py157 def check_project_member_not_exist(self, project_id, member_user_name, **kwargs):CODE
LOW⚡tests/apitests/python/library/project.py164 def check_project_members_exist(self, project_id, member_user_name, expected_member_role_id = None, **kwargs):CODE
LOW⚡tests/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.py91def 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
6 more matches not shown…
Excessive Try-Catch Wrapping25 hits · 30 pts
SeverityFileLineSnippetContext
LOWtools/migrate_chart/migrate_chart.py79 except Exception as e:CODE
LOWtools/migrate_chart/migrate_chart.py134 except Exception as e:CODE
LOWtests/apitests/python/test_tag_immutability.py226 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.py100 except Exception:CODE
LOWtests/apitests/python/library/base.py145 except Exception as e:CODE
MEDIUMtests/apitests/python/library/base.py96def _get_id_from_header(header):CODE
MEDIUMtests/apitests/python/library/base.py140def 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.py76 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.py125CODE
LOWtests/apitests/python/library/artifact.py153CODE
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.py109CODE
LOWmake/photon/prepare/utils/registry.py52CODE
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
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHmake/photon/prepare/utils/cert.py63except subprocess.CalledProcessError:CODE
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