{"id":5233597,"name":"github.com/sourcegraph/go-diff-patch","ecosystem":"go","description":"","homepage":"https://github.com/sourcegraph/go-diff-patch","licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://github.com/sourcegraph/go-diff-patch","keywords_array":[],"namespace":"github.com/sourcegraph","versions_count":2,"first_release_published_at":"2022-08-18T15:37:21.000Z","latest_release_published_at":"2024-02-23T16:32:33.000Z","latest_release_number":"v0.0.0-20240223163233-798fd1e94a8e","last_synced_at":"2026-04-24T16:32:21.809Z","created_at":"2022-09-11T01:27:54.831Z","updated_at":"2026-04-24T16:32:21.809Z","registry_url":"https://pkg.go.dev/github.com/sourcegraph/go-diff-patch","install_command":"go get github.com/sourcegraph/go-diff-patch","documentation_url":"https://pkg.go.dev/github.com/sourcegraph/go-diff-patch#section-documentation","metadata":{},"repo_metadata":{"id":53343034,"uuid":"521369862","full_name":"sourcegraph/go-diff-patch","owner":"sourcegraph","description":"Go library for generating \"git-compatible\" patches","archived":false,"fork":false,"pushed_at":"2024-02-23T16:33:18.000Z","size":31501,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-16T17:53:35.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcegraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-04T18:11:03.000Z","updated_at":"2025-09-15T12:06:09.000Z","dependencies_parsed_at":"2024-02-23T16:51:31.706Z","dependency_job_id":null,"html_url":"https://github.com/sourcegraph/go-diff-patch","commit_stats":{"total_commits":6726,"total_committers":454,"mean_commits":"14.814977973568283","dds":0.851769253642581,"last_synced_commit":"50706a0e22c3e112fec99486bebb6fe6aea122e4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sourcegraph/go-diff-patch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-diff-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-diff-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-diff-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-diff-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","download_url":"https://codeload.github.com/sourcegraph/go-diff-patch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-diff-patch/sbom","scorecard":{"id":839335,"data":{"date":"2025-08-11","repo":{"name":"github.com/sourcegraph/go-diff-patch","commit":"798fd1e94a8ed8402d3a3a635838cb9baba161ff"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/sourcegraph/go-diff-patch/go-ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/sourcegraph/go-diff-patch/go-ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go-ci.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/sourcegraph/go-diff-patch/go-ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/scip-go.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sourcegraph/go-diff-patch/scip-go.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":2,"reason":"Found 7/30 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go-ci.yml:1","Warn: no topLevel permission defined: .github/workflows/scip-go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T20:03:00.805Z","repository_id":53343034,"created_at":"2025-08-23T20:03:00.805Z","updated_at":"2025-08-23T20:03:00.805Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275866567,"owners_count":25542742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"sourcegraph","name":"Sourcegraph","uuid":"3979584","kind":"organization","description":"Helping developers search, understand, and write code in complex codebases with AI","email":"hi@sourcegraph.com","website":"https://sourcegraph.com","location":null,"twitter":"sourcegraph","company":null,"icon_url":"https://avatars.githubusercontent.com/u/3979584?v=4","repositories_count":598,"last_synced_at":"2025-09-16T17:10:56.801Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/sourcegraph","funding_links":[],"total_stars":47892,"followers":1413,"following":0,"created_at":"2022-11-05T04:21:26.329Z","updated_at":"2025-09-16T17:10:56.801Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph/repositories"},"tags":[]},"repo_metadata_updated_at":"2025-09-19T01:28:34.207Z","dependent_packages_count":3,"downloads":null,"downloads_period":null,"dependent_repos_count":1,"rankings":{"downloads":null,"dependent_repos_count":4.706401008585746,"dependent_packages_count":3.379739714659602,"stargazers_count":16.43317235092171,"forks_count":13.458814752162397,"docker_downloads_count":1.3528435126295293,"average":7.866194267791796},"purl":"pkg:golang/github.com/sourcegraph/go-diff-patch","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/sourcegraph/go-diff-patch","docker_dependents_count":1,"docker_downloads_count":894,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/sourcegraph/go-diff-patch","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/sourcegraph/go-diff-patch/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-18T01:53:45.026Z","issues_count":0,"pull_requests_count":7,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":58054.5,"issues_closed_count":0,"pull_requests_closed_count":6,"pull_request_authors_count":3,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":1.0,"merged_pull_requests_count":6,"bot_issues_count":0,"bot_pull_requests_count":1,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-diff-patch/issues","maintainers":[{"login":"BolajiOlajide","count":5,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/BolajiOlajide"},{"login":"Strum355","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/Strum355"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsourcegraph%2Fgo-diff-patch/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsourcegraph%2Fgo-diff-patch/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsourcegraph%2Fgo-diff-patch/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsourcegraph%2Fgo-diff-patch/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsourcegraph%2Fgo-diff-patch/codemeta","maintainers":[]}