Go library for accessing the GitHub v3 API
This report summarizes scanner evidence for google/go-github, a Go project with 11,330 GitHub stars. SynthScan examined 212,594 lines of code across 551 source files, recording 188 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 0.9 (Low 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.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 168 finding(s).
Are imports declared and package/API names verified? 20 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 188 finding(s).
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.
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.
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.
The scanner identified 188 distinct pattern matches across 4 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/paramcheck/paramcheck.go | 1 | // Copyright 2026 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | tools/schemafields/check_test.go | 281 | # reports problems that a change introduces, and so that a disagreement can be | COMMENT |
| LOW | tools/schemafields/openapi.go | 221 | COMMENT | |
| LOW | tools/schemafields/exceptions.txt | 1 | # Schema field exceptions for tools/schemafields. | COMMENT |
| LOW | tools/schemafields/main.go | 1 | // Copyright 2026 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | tools/structfield/structfield.go | 1 | // Copyright 2025 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | tools/list-return-structs/main.go | 1 | // Copyright 2026 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | tools/gen-release-notes/main.go | 1 | // Copyright 2025 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | tools/metadata/check.go | 1 | // Copyright 2026 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | tools/metadata/check.go | 21 | // | COMMENT |
| LOW | …etadata/testdata/golden/TestUpdateGo/valid/github/a.go | 1 | package github | COMMENT |
| LOW | …etadata/testdata/golden/TestUpdateGo/valid/github/a.go | 21 | // GitHub API docs: https://docs.github.com/rest/a/a?apiVersion=2022-11-28#update-a | COMMENT |
| LOW | tools/metadata/testdata/update-go/valid/github/a.go | 1 | package github | COMMENT |
| LOW | tools/metadata/testdata/update-go/invalid/github/a.go | 21 | // | COMMENT |
| LOW | test/integration/projects_test.go | 21 | // discovered dynamically by first listing projects and selecting one. For item | COMMENT |
| LOW | test/integration/doc.go | 1 | // Copyright 2016 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | example/newreposecretwithxcrypto/main.go | 1 | // Copyright 2021 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | example/newreposecretwithxcrypto/main.go | 101 | return secretValue, nil | COMMENT |
| LOW | example/listenvironments/main.go | 1 | // Copyright 2022 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | example/commitpr/main.go | 1 | // Copyright 2018 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | example/codespaces/newreposecretwithxcrypto/main.go | 1 | // Copyright 2023 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | example/codespaces/newreposecretwithxcrypto/main.go | 101 | return secretValue, nil | COMMENT |
| LOW | example/codespaces/newusersecretwithxcrypto/main.go | 1 | // Copyright 2023 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | example/codespaces/newusersecretwithxcrypto/main.go | 101 | // The actual transmission of the secret value to GitHub using the API requires that the secret value is encrypted | COMMENT |
| LOW | example/auditlogstream/main.go | 1 | // Copyright 2026 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | scrape/scrape.go | 1 | // Copyright 2013 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | script/run-check-structfield-settings.sh | 1 | #!/bin/bash -e | COMMENT |
| LOW | github/users_ssh_signing_keys.go | 21 | func (k SSHSigningKey) String() string { | COMMENT |
| LOW | github/users.go | 81 | // Assignment identifies how a user was assigned to an organization role. Its | COMMENT |
| LOW | github/fuzz_messages_test.go | 1 | // Copyright 2026 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | github/repos_releases.go | 321 | // | COMMENT |
| LOW | github/private_registries.go | 121 | COMMENT | |
| LOW | github/billing.go | 81 | COMMENT | |
| LOW | github/git.go | 1 | // Copyright 2013 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | github/actions_workflow_jobs.go | 61 | // Filter specifies how jobs should be filtered by their completed_at timestamp. | COMMENT |
| LOW | github/issues.go | 381 | // Milestone limits issues for the specified milestone. Possible values are | COMMENT |
| LOW | github/users_followers.go | 1 | // Copyright 2013 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | github/orgs_actions_allowed.go | 1 | // Copyright 2021 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | github/apps.go | 61 | // InstallationTokenListRepoOptions allow restricting a token's access to a list of all repositories in an installation. | COMMENT |
| LOW | github/apps.go | 221 | } | COMMENT |
| LOW | github/apps.go | 481 | // GetEnterpriseInstallation finds the enterprise's installation information. | COMMENT |
| LOW | github/agents.go | 1 | // Copyright 2026 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | github/gen-stringify-test.go | 1 | // Copyright 2019 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | github/users_attestations.go | 1 | // Copyright 2024 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | github/repos_stats.go | 81 | // starting on Sunday. | COMMENT |
| LOW | github/repos_stats.go | 101 | if err != nil { | COMMENT |
| LOW | github/repos_stats.go | 161 | } | COMMENT |
| LOW | github/repos_stats.go | 201 | } | COMMENT |
| LOW | github/repos_forks.go | 61 | // CreateFork creates a fork of the specified repository. | COMMENT |
| LOW | github/rules.go | 121 | // NOTE: GitHub's API inconsistently uses different casing for the same logical values | COMMENT |
| LOW | github/orgs_attestations.go | 1 | // Copyright 2024 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | github/enterprise_app_installation.go | 161 | // AppInstallationRepositoriesRequest specifies the parameters for | COMMENT |
| LOW | github/dependency_graph_snapshots.go | 21 | // - "licenses": license information (e.g., "MIT", "Apache-2.0") | COMMENT |
| LOW | github/actions.go | 1 | // Copyright 2020 The go-github AUTHORS. All rights reserved. | COMMENT |
| LOW | github/activity.go | 41 | CurrentUserOrganization *FeedLink `json:"current_user_organization,omitempty"` | COMMENT |
| LOW | github/copilot.go | 1581 | // CopilotMetricsCopilotApp represents Copilot app totals in a metrics report. | COMMENT |
| LOW | github/teams.go | 181 | // Possible values are: | COMMENT |
| LOW | github/teams.go | 241 | COMMENT | |
| LOW | github/teams.go | 521 | // Permission specifies the permission to grant the team on this repository. | COMMENT |
| LOW | github/teams.go | 781 | return s.client.Do(req, nil) | COMMENT |
| 104 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | github/users_emails_test.go | 24 | "email": "user@example.com", | CODE |
| LOW | github/users_emails_test.go | 37 | want := []*UserEmail{{Email: new("user@example.com"), Verified: new(false), Primary: new(true)}} | CODE |
| LOW | github/users_emails_test.go | 60 | "email": "user@example.com", | CODE |
| LOW | github/users_emails_test.go | 74 | want := []*UserEmail{{Email: new("user@example.com"), Verified: new(true), Primary: new(true), Visibility: new("public" | CODE |
| LOW | github/users_emails_test.go | 129 | input := []string{"user@example.com"} | CODE |
| LOW | github/users_emails_test.go | 158 | "email": "user@example.com", | CODE |
| LOW | github/users_emails_test.go | 171 | want := []*UserEmail{{Email: new("user@example.com"), Verified: new(false), Primary: new(true), Visibility: new("privat | CODE |
| LOW | github/examples_test.go | 97 | Committer: &github.CommitAuthor{Name: new("FirstName LastName"), Email: new("user@example.com")}, | CODE |
| LOW | github/enterprise_licenses_test.go | 194 | "visual_studio_subscription_email": "user@example.com", | CODE |
| LOW | github/enterprise_licenses_test.go | 216 | VisualStudioSubscriptionEmail: new("user@example.com"), | CODE |
| LOW | github/enterprise_licenses_test.go | 255 | "visual_studio_subscription_email": "user@example.com", | CODE |
| LOW | github/enterprise_licenses_test.go | 269 | VisualStudioSubscriptionEmail: new("user@example.com"), | CODE |
| LOW | github/enterprise_scim_test.go | 292 | DisplayName: "John Doe", | CODE |
| LOW | github/enterprise_scim_test.go | 311 | "displayName": "John Doe", | CODE |
| LOW | github/enterprise_scim_test.go | 331 | DisplayName: "John Doe", | CODE |
| LOW | github/enterprise_scim_test.go | 481 | "displayName": "John Doe", | CODE |
| LOW | github/enterprise_scim_test.go | 505 | DisplayName: "John Doe", | CODE |
| LOW | github/enterprise_scim_test.go | 656 | Formatted: new("John Doe"), | CODE |
| LOW | github/enterprise_scim_test.go | 684 | "formatted": "John Doe", | CODE |
| LOW | github/enterprise_scim_test.go | 714 | Formatted: new("John Doe"), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .codecov.yml | 4 | # ignore auto-generated code | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | github/messages.go | 202 | // Example usage: | COMMENT |
| LOW | github/messages.go | 265 | // Example usage: | COMMENT |
| LOW | github/messages.go | 322 | // Example usage: | COMMENT |