{"id":40286657,"url":"https://github.com/kinbiko/bugsnag","last_synced_at":"2026-01-20T04:33:20.482Z","repository":{"id":42040224,"uuid":"260560462","full_name":"kinbiko/bugsnag","owner":"kinbiko","description":"Well-documented, maintainable, idiomatic, opinionated, and *unofficial* rewrite of the Bugsnag Go notifier","archived":false,"fork":false,"pushed_at":"2025-12-22T11:21:24.000Z","size":238,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-23T01:07:23.356Z","etag":null,"topics":["bugsnag","error-handling","error-monitoring","error-reporting","go","golang","notifier","panic"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kinbiko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-05-01T21:19:32.000Z","updated_at":"2025-12-22T11:21:27.000Z","dependencies_parsed_at":"2024-06-19T22:51:41.030Z","dependency_job_id":"1da9225b-1440-4023-b1d5-c86473d11d64","html_url":"https://github.com/kinbiko/bugsnag","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/kinbiko/bugsnag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinbiko%2Fbugsnag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinbiko%2Fbugsnag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinbiko%2Fbugsnag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinbiko%2Fbugsnag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kinbiko","download_url":"https://codeload.github.com/kinbiko/bugsnag/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinbiko%2Fbugsnag/sbom","scorecard":{"id":560509,"data":{"date":"2025-08-11","repo":{"name":"github.com/kinbiko/bugsnag","commit":"5d4bdbff3e202f8ba9371f45244f654b455a9d26"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"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":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/kinbiko/bugsnag/go.yml/main?enable=pin","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 goCommand 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":"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":"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":"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: MIT 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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 23 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":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2024-2978 / GHSA-xr7q-jx4m-x55m"],"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-20T13:32:34.375Z","repository_id":42040224,"created_at":"2025-08-20T13:32:34.375Z","updated_at":"2025-08-20T13:32:34.375Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"}},"keywords":["bugsnag","error-handling","error-monitoring","error-reporting","go","golang","notifier","panic"],"created_at":"2026-01-20T04:33:20.411Z","updated_at":"2026-01-20T04:33:20.464Z","avatar_url":"https://github.com/kinbiko.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bugsnag Go notifier (unofficial rewrite)\n\n[![Build Status](https://github.com/kinbiko/bugsnag/workflows/Go/badge.svg)](https://github.com/kinbiko/bugsnag/actions)\n[![Coverage Status](https://coveralls.io/repos/github/kinbiko/bugsnag/badge.svg?branch=main)](https://coveralls.io/github/kinbiko/bugsnag?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kinbiko/bugsnag)](https://goreportcard.com/report/github.com/kinbiko/bugsnag)\n[![Latest version](https://img.shields.io/github/tag/kinbiko/bugsnag.svg?label=latest%20version\u0026style=flat)](https://github.com/kinbiko/bugsnag/releases)\n[![Go Documentation](http://img.shields.io/badge/godoc-documentation-blue.svg?style=flat)](https://pkg.go.dev/github.com/kinbiko/bugsnag?tab=doc)\n[![License](https://img.shields.io/github/license/kinbiko/bugsnag.svg?style=flat)](https://github.com/kinbiko/bugsnag/blob/main/.github/LICENSE)\n\nWell-documented, maintainable, idiomatic, opinionated, and **unofficial** rewrite of the [Bugsnag Go notifier](https://github.com/bugsnag/bugsnag-go).\nSee [this document](./.github/official-notifier-difference.md) for an overview of the differences between this package and the official notifier.\n\nIn addition to the notifier library in `github.com/kinbiko/bugsnag`, there's a `bugsnag` command-line application in `github.com/kinbiko/bugsnag/cmd/bugsnag` that can easily report builds and releases to Bugsnag for an even better debugging experience.\n\n## Notifier Usage\n\nMake sure you're importing this package, and not the official notifier:\n\n```go\nimport \"github.com/kinbiko/bugsnag\"\n```\n\nThen set up your `*bugsnag.Notifier`, the type that exposes the main API of this package, based on a `bugsnag.Configuration`.\n\n```go\nnotifier, err := bugsnag.New(bugsnag.Configuration{\n\tAPIKey:       \"\u003c\u003cYOUR API KEY HERE\u003e\u003e\",\n\tAppVersion:   \"1.3.5\", // Some semver\n\tReleaseStage: \"production\",\n})\nif err != nil {\n\tpanic(err) // TODO: Handle error in an appropriate manner\n}\ndefer notifier.Close() // Close once you know there are no further calls to notifier.Notify or notifier.StartSession.\n```\n\nIn order to get the most accurate filepaths in stacktraces (generated in the case of panics and `bugsnag.Error`s), make sure to build (or run) your application with the `-trimpath` flag set:\n\n```\ngo build -trimpath ./cmd/myapp\n```\n\nApplications built without `-trimpath` have stacktraces that appear with absolute paths of the machine where `go build` was executed.\n\n### Reporting errors\n\nThe Notifier is now ready for use.\nCall `notifier.Notify()` to notify Bugsnag about an error in your application.\n\n```go\nif err != nil {\n\tnotifier.Notify(ctx, err)\n}\n```\n\n### Attaching diagnostic data\n\nSee the [`With*` methods in the docs](https://pkg.go.dev/github.com/kinbiko/bugsnag) to learn how to attach additional information to your error reports:\n\n- User information,\n- Breadcrumbs,\n- **any** custom \"metadata\",\n- etc.\n\nIn Go, errors don't include a stacktrace, so it can be difficult to track where an error originates, if the location that it is being reported is different to where it is first created.\nSimilarly, any `context.Context` data may get lost if reporting at a location higher up the stack than where the error occurred.\nTo prevent this loss of information, this package exposes an `notifier.Wrap` method that can wrap an existing error with its stacktrace along with the context data at this location.\nYou can then safely call `notifier.Notify()` at a single location if you so wish.\n\n```go\nif err != nil {\n\treturn notifier.Wrap(ctx, err, \"unable to foo the bar\")\n}\n```\n\nYou can safely re-wrap this error again should you so wish.\n\n\u003e IMPORTANT: In order to get the most out of this package, it is recommended to wrap your errors as far down the stack as possible.\n\nIf you would like to mark your error as unhandled, e.g. in the case of a panic, you should set these flags explicitly on the error returned from Wrap.\n\n```go\nif r := recover(); r != nil {\n\t// You can use notifier.Wrap as well, but this requires a type cast.\n\terr := bugsnag.Wrap(ctx, fmt.Errorf(\"unhandled panic when calling FooBar: %v\", r))\n\terr.Unhandled = true\n\terr.Panic = true\n\tnotifier.Notify(ctx, err)\n}\n```\n\n### Enabling session tracking to establish a stability score\n\nFor each session, usually synonymous with 'request' (HTTP/gRPC/AMQP/PubSub/etc.), you should call `ctx = notifier.StartSession(ctx)`, usually performed in a middleware function.\nAny **unhandled** errors that are reported along with this `ctx` will count negatively towards your stability score.\n\n### Examples\n\nCheck out the `examples/` directory for more advanced blueprints:\n\n- HTTP middleware.\n- gRPC middleware.\n- Reporting panics.\n- `o11y` structural pattern.\n- Advanced feature: Sanitizers\n  - Intercepting calls to Bugsnag in tests.\n  - Modify data sent to Bugsnag for sanitization/augmentation.\n  - etc.\n\nIn particular, the examples highlight the additional the features that are different from, or not found, in the [official notifier](https://github.com/bugsnag/bugsnag-go).\n\n## `bugsnag` command-line application usage\n\nInstall the binary with:\n\n```console\n$ go install github.com/kinbiko/bugsnag/cmd/bugsnag@latest\n```\n\nReport a new release to Bugsnag with\n\n```console\n$ bugsnag release \\\n    --api-key=$SOME_API_KEY \\\n    --app-version=5.1.2 \\\n    --release-stage=staging \\\n    --repository=https://github.com/kinbiko/bugsnag \\\n    --revision=64414f621b33680419b1cb3e5c622b510207ae1e \\\n    --builder=kinbiko \\\n    --metadata=\"KEY1=VALUE1,KEY2=VALUE2\"\nrelease info published for version 5.1.2\n```\n\nIf you have environment variables `BUGSNAG_API_KEY` and `BUGSNAG_APP_VERSION` (or `APP_VERSION`) set, then you can skip the first two (required) flags.\n\nSee `bugsnag release --help` for more info and additional configuration parameters.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinbiko%2Fbugsnag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkinbiko%2Fbugsnag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinbiko%2Fbugsnag/lists"}